Lines Matching refs:MatrixType

25 template<typename MatrixType>
26 MatrixType randomMatrixWithRealEivals(const typename MatrixType::Index size)
28 typedef typename MatrixType::Index Index;
29 typedef typename MatrixType::Scalar Scalar;
30 typedef typename MatrixType::RealScalar RealScalar;
31 MatrixType diag = MatrixType::Zero(size, size);
36 MatrixType A = MatrixType::Random(size, size);
37 HouseholderQR<MatrixType> QRofA(A);
41 template <typename MatrixType, int IsComplex = NumTraits<typename internal::traits<MatrixType>::Scalar>::IsComplex>
45 static MatrixType run(const typename MatrixType::Index size);
49 template<typename MatrixType>
50 struct randomMatrixWithImagEivals<MatrixType, 0>
52 static MatrixType run(const typename MatrixType::Index size)
54 typedef typename MatrixType::Index Index;
55 typedef typename MatrixType::Scalar Scalar;
56 MatrixType diag = MatrixType::Zero(size, size);
70 MatrixType A = MatrixType::Random(size, size);
71 HouseholderQR<MatrixType> QRofA(A);
77 template<typename MatrixType>
78 struct randomMatrixWithImagEivals<MatrixType, 1>
80 static MatrixType run(const typename MatrixType::Index size)
82 typedef typename MatrixType::Index Index;
83 typedef typename MatrixType::Scalar Scalar;
84 typedef typename MatrixType::RealScalar RealScalar;
86 MatrixType diag = MatrixType::Zero(size, size);
91 MatrixType A = MatrixType::Random(size, size);
92 HouseholderQR<MatrixType> QRofA(A);
98 template<typename MatrixType>
99 void testMatrixExponential(const MatrixType& A)
101 typedef typename internal::traits<MatrixType>::Scalar Scalar;
108 template<typename MatrixType>
109 void testMatrixLogarithm(const MatrixType& A)
111 typedef typename internal::traits<MatrixType>::Scalar Scalar;
114 MatrixType scaledA;
122 MatrixType expA = scaledA.exp();
123 MatrixType logExpA = expA.log();
127 template<typename MatrixType>
128 void testHyperbolicFunctions(const MatrixType& A)
136 template<typename MatrixType>
137 void testGonioFunctions(const MatrixType& A)
139 typedef typename MatrixType::Scalar Scalar;
142 typedef Matrix<ComplexScalar, MatrixType::RowsAtCompileTime,
143 MatrixType::ColsAtCompileTime, MatrixType::Options> ComplexMatrix;
160 template<typename MatrixType>
161 void testMatrix(const MatrixType& A)
169 template<typename MatrixType>
170 void testMatrixType(const MatrixType& m)
174 typedef typename MatrixType::Index Index;
178 testMatrix(MatrixType::Random(size, size).eval());
179 testMatrix(randomMatrixWithRealEivals<MatrixType>(size));
180 testMatrix(randomMatrixWithImagEivals<MatrixType>::run(size));