mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix more shadowing typedefs
This commit is contained in:
@@ -50,7 +50,6 @@ struct randomMatrixWithImagEivals<MatrixType, 0>
|
||||
{
|
||||
static MatrixType run(const typename MatrixType::Index size)
|
||||
{
|
||||
typedef typename MatrixType::Index Index;
|
||||
typedef typename MatrixType::Scalar Scalar;
|
||||
MatrixType diag = MatrixType::Zero(size, size);
|
||||
Index i = 0;
|
||||
@@ -78,7 +77,6 @@ struct randomMatrixWithImagEivals<MatrixType, 1>
|
||||
{
|
||||
static MatrixType run(const typename MatrixType::Index size)
|
||||
{
|
||||
typedef typename MatrixType::Index Index;
|
||||
typedef typename MatrixType::Scalar Scalar;
|
||||
typedef typename MatrixType::RealScalar RealScalar;
|
||||
const Scalar imagUnit(0, 1);
|
||||
@@ -170,7 +168,6 @@ void testMatrixType(const MatrixType& m)
|
||||
{
|
||||
// Matrices with clustered eigenvalue lead to different code paths
|
||||
// in MatrixFunction.h and are thus useful for testing.
|
||||
typedef typename MatrixType::Index Index;
|
||||
|
||||
const Index size = m.rows();
|
||||
for (int i = 0; i < g_repeat; i++) {
|
||||
|
||||
@@ -318,10 +318,6 @@ void test_openglsupport()
|
||||
|
||||
GLint prg_id = createShader(vtx,frg);
|
||||
|
||||
typedef Vector2d Vector2d;
|
||||
typedef Vector3d Vector3d;
|
||||
typedef Vector4d Vector4d;
|
||||
|
||||
VERIFY_UNIFORM(dv,v2d, Vector2d);
|
||||
VERIFY_UNIFORM(dv,v3d, Vector3d);
|
||||
VERIFY_UNIFORM(dv,v4d, Vector4d);
|
||||
|
||||
@@ -30,7 +30,6 @@ struct increment_if_fixed_size
|
||||
template<int Deg, typename POLYNOMIAL, typename SOLVER>
|
||||
bool aux_evalSolver( const POLYNOMIAL& pols, SOLVER& psolve )
|
||||
{
|
||||
typedef typename POLYNOMIAL::Index Index;
|
||||
typedef typename POLYNOMIAL::Scalar Scalar;
|
||||
|
||||
typedef typename SOLVER::RootsType RootsType;
|
||||
@@ -107,7 +106,6 @@ void evalSolverSugarFunction( const POLYNOMIAL& pols, const ROOTS& roots, const
|
||||
// 1) the roots found are correct
|
||||
// 2) the roots have distinct moduli
|
||||
|
||||
typedef typename POLYNOMIAL::Scalar Scalar;
|
||||
typedef typename REAL_ROOTS::Scalar Real;
|
||||
|
||||
//Test realRoots
|
||||
|
||||
Reference in New Issue
Block a user