Home | History | Annotate | Download | only in test

Lines Matching refs:MatrixType

17 template<typename MatrixType, int QRPreconditioner>
18 void jacobisvd_check_full(const MatrixType& m, const JacobiSVD<MatrixType, QRPreconditioner>& svd)
20 typedef typename MatrixType::Index Index;
25 RowsAtCompileTime = MatrixType::RowsAtCompileTime,
26 ColsAtCompileTime = MatrixType::ColsAtCompileTime
29 typedef typename MatrixType::Scalar Scalar;
36 MatrixType sigma = MatrixType::Zero(rows,cols);
46 template<typename MatrixType, int QRPreconditioner>
47 void jacobisvd_compare_to_full(const MatrixType& m,
49 const JacobiSVD<MatrixType, QRPreconditioner>& referenceSvd)
51 typedef typename MatrixType::Index Index;
56 JacobiSVD<MatrixType, QRPreconditioner> svd(m, computationOptions);
69 template<typename MatrixType, int QRPreconditioner>
70 void jacobisvd_solve(const MatrixType& m, unsigned int computationOptions)
72 typedef typename MatrixType::Scalar Scalar;
73 typedef typename MatrixType::Index Index;
78 RowsAtCompileTime = MatrixType::RowsAtCompileTime,
79 ColsAtCompileTime = MatrixType::ColsAtCompileTime
86 JacobiSVD<MatrixType, QRPreconditioner> svd(m, computationOptions);
92 template<typename MatrixType, int QRPreconditioner>
93 void jacobisvd_test_all_computation_options(const MatrixType& m)
97 JacobiSVD<MatrixType, QRPreconditioner> fullSvd(m, ComputeFullU|ComputeFullV);
100 jacobisvd_solve<MatrixType, QRPreconditioner>(m, ComputeFullU | ComputeFullV);
109 if (MatrixType::ColsAtCompileTime == Dynamic) {
116 jacobisvd_solve<MatrixType, QRPreconditioner>(m, ComputeFullU | ComputeThinV);
117 jacobisvd_solve<MatrixType, QRPreconditioner>(m, ComputeThinU | ComputeFullV);
118 jacobisvd_solve<MatrixType, QRPreconditioner>(m, ComputeThinU | ComputeThinV);
121 typedef typename MatrixType::Index Index;
123 JacobiSVD<MatrixType, QRPreconditioner> svd(m, ComputeThinU | ComputeThinV);
128 template<typename MatrixType>
129 void jacobisvd(const MatrixType& a = MatrixType(), bool pickrandom = true)
131 MatrixType m = pickrandom ? MatrixType::Random(a.rows(), a.cols()) : a;
133 jacobisvd_test_all_computation_options<MatrixType, FullPivHouseholderQRPreconditioner>(m);
134 jacobisvd_test_all_computation_options<MatrixType, ColPivHouseholderQRPreconditioner>(m);
135 jacobisvd_test_all_computation_options<MatrixType, HouseholderQRPreconditioner>(m);
136 jacobisvd_test_all_computation_options<MatrixType, NoQRPreconditioner>(m);
139 template<typename MatrixType> void jacobisvd_verify_assert(const MatrixType& m)
141 typedef typename MatrixType::Scalar Scalar;
142 typedef typename MatrixType::Index Index;
147 RowsAtCompileTime = MatrixType::RowsAtCompileTime,
148 ColsAtCompileTime = MatrixType::ColsAtCompileTime
155 JacobiSVD<MatrixType> svd;
161 MatrixType a = MatrixType::Zero(rows, cols);
181 JacobiSVD<MatrixType, FullPivHouseholderQRPreconditioner> svd_fullqr;
193 template<typename MatrixType>
196 enum { Size = MatrixType::RowsAtCompileTime };
197 typedef typename MatrixType::RealScalar RealScalar;
199 MatrixType m = MatrixType::Identity();
214 template<typename MatrixType>
219 JacobiSVD<MatrixType> svd;
220 typedef typename MatrixType::Scalar Scalar;
223 svd.compute(MatrixType::Constant(10,10,some_inf), ComputeFullU | ComputeFullV);
227 svd.compute(MatrixType::Constant(10,10,some_nan), ComputeFullU | ComputeFullV);
229 MatrixType m = MatrixType::Zero(10,10);
233 m = MatrixType::Zero(10,10);