Lines Matching refs:MatrixType
33 template<typename MatrixType> void eigensolver(const MatrixType& m)
35 typedef typename MatrixType::Index Index;
42 typedef typename MatrixType::Scalar Scalar;
44 typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType;
45 typedef Matrix<RealScalar, MatrixType::RowsAtCompileTime, 1> RealVectorType;
46 typedef typename std::complex<typename NumTraits<typename MatrixType::Scalar>::Real> Complex;
48 MatrixType a = MatrixType::Random(rows,cols);
49 MatrixType symmA = a.adjoint() * a;
51 ComplexEigenSolver<MatrixType> ei0(symmA);
55 ComplexEigenSolver<MatrixType> ei1(a);
58 // Note: If MatrixType is real then a.eigenvalues() uses EigenSolver and thus
62 ComplexEigenSolver<MatrixType> eiNoEivecs(a, false);
67 MatrixType z = MatrixType::Zero(rows,cols);
68 ComplexEigenSolver<MatrixType> eiz(z);
71 MatrixType id = MatrixType::Identity(rows, cols);
77 a(0,0) = std::numeric_limits<typename MatrixType::RealScalar>::quiet_NaN();
78 ComplexEigenSolver<MatrixType> eiNaN(a);
83 template<typename MatrixType> void eigensolver_verify_assert(const MatrixType& m)
85 ComplexEigenSolver<MatrixType> eig;
89 MatrixType a = MatrixType::Random(m.rows(),m.cols());