/external/eigen/test/eigen2/ |
H A D | eigen2_svd.cpp | 13 template<typename MatrixType> void svd(const MatrixType& m) function 33 SVD<MatrixType> svd(a); 36 sigma.block(0,0,cols,cols) = svd.singularValues().asDiagonal(); 37 matU.block(0,0,rows,cols) = svd.matrixU(); 38 VERIFY_IS_APPROX(a, matU * sigma * svd.matrixV().transpose()); 49 SVD<MatrixType> svd(a); 50 svd.solve(b, &x); 57 SVD<MatrixType> svd(a); 59 svd.computeUnitaryPositive(&unitary, &positive); 65 svd [all...] |
/external/eigen/unsupported/test/ |
H A D | bdcsvd.cpp | 17 // check if "svd" is the good image of "m" 19 void bdcsvd_check_full(const MatrixType& m, const BDCSVD<MatrixType>& svd) argument 21 svd_check_full< MatrixType, BDCSVD< MatrixType > >(m, svd);
|
H A D | jacobisvd.cpp | 14 void jacobisvd_check_full(const MatrixType& m, const JacobiSVD<MatrixType, QRPreconditioner>& svd) argument 16 svd_check_full<MatrixType, JacobiSVD<MatrixType, QRPreconditioner > >(m, svd); 128 JacobiSVD<Matrix2d> svd; local 129 svd.compute(M); // just check we don't loop indefinitely
|
H A D | svd_common.h | 25 // check if "svd" is the good image of "m" 27 void svd_check_full(const MatrixType& m, const SVD& svd) argument 43 sigma.diagonal() = svd.singularValues().template cast<Scalar>(); 44 MatrixUType u = svd.matrixU(); 45 MatrixVType v = svd.matrixV(); 64 SVD svd(m, computationOptions); 66 VERIFY_IS_APPROX(svd.singularValues(), referenceSvd.singularValues()); 68 VERIFY_IS_APPROX(svd.matrixU(), referenceSvd.matrixU()); 70 VERIFY_IS_APPROX(svd.matrixU(), referenceSvd.matrixU().leftCols(diagSize)); 72 VERIFY_IS_APPROX(svd 154 SVD svd; local 199 SVD svd; local 227 SVD svd; local [all...] |
/external/eigen/test/ |
H A D | jacobisvd.cpp | 18 void jacobisvd_check_full(const MatrixType& m, const JacobiSVD<MatrixType, QRPreconditioner>& svd) argument 34 sigma.diagonal() = svd.singularValues().template cast<Scalar>(); 35 MatrixUType u = svd.matrixU(); 36 MatrixVType v = svd.matrixV(); 53 JacobiSVD<MatrixType, QRPreconditioner> svd(m, computationOptions); 55 VERIFY_IS_APPROX(svd.singularValues(), referenceSvd.singularValues()); 57 VERIFY_IS_APPROX(svd.matrixU(), referenceSvd.matrixU()); 59 VERIFY_IS_APPROX(svd.matrixU(), referenceSvd.matrixU().leftCols(diagSize)); 61 VERIFY_IS_APPROX(svd.matrixV(), referenceSvd.matrixV()); 63 VERIFY_IS_APPROX(svd [all...] |
/external/eigen/unsupported/Eigen/src/SVD/ |
H A D | JacobiSVD.h | 77 void allocate(const JacobiSVD<MatrixType, FullPivHouseholderQRPreconditioner>& svd) argument 79 if (svd.rows() != m_qr.rows() || svd.cols() != m_qr.cols()) 82 ::new (&m_qr) QRType(svd.rows(), svd.cols()); 84 if (svd.m_computeFullU) m_workspace.resize(svd.rows()); 87 bool run(JacobiSVD<MatrixType, FullPivHouseholderQRPreconditioner>& svd, const MatrixType& matrix) argument 92 svd.m_workMatrix = m_qr.matrixQR().block(0,0,matrix.cols(),matrix.cols()).template triangularView<Upper>(); 93 if(svd 122 allocate(const JacobiSVD<MatrixType, FullPivHouseholderQRPreconditioner>& svd) argument 133 run(JacobiSVD<MatrixType, FullPivHouseholderQRPreconditioner>& svd, const MatrixType& matrix) argument 161 allocate(const JacobiSVD<MatrixType, ColPivHouseholderQRPreconditioner>& svd) argument 172 run(JacobiSVD<MatrixType, ColPivHouseholderQRPreconditioner>& svd, const MatrixType& matrix) argument 214 allocate(const JacobiSVD<MatrixType, ColPivHouseholderQRPreconditioner>& svd) argument 226 run(JacobiSVD<MatrixType, ColPivHouseholderQRPreconditioner>& svd, const MatrixType& matrix) argument 261 allocate(const JacobiSVD<MatrixType, HouseholderQRPreconditioner>& svd) argument 272 run(JacobiSVD<MatrixType, HouseholderQRPreconditioner>& svd, const MatrixType& matrix) argument 313 allocate(const JacobiSVD<MatrixType, HouseholderQRPreconditioner>& svd) argument 325 run(JacobiSVD<MatrixType, HouseholderQRPreconditioner>& svd, const MatrixType& matrix) argument 372 run(typename SVD::WorkMatrixType& work_matrix, SVD& svd, Index p, Index q) argument [all...] |
/external/eigen/Eigen/src/SVD/ |
H A D | JacobiSVD.h | 77 void allocate(const JacobiSVD<MatrixType, FullPivHouseholderQRPreconditioner>& svd) argument 79 if (svd.rows() != m_qr.rows() || svd.cols() != m_qr.cols()) 82 ::new (&m_qr) QRType(svd.rows(), svd.cols()); 84 if (svd.m_computeFullU) m_workspace.resize(svd.rows()); 87 bool run(JacobiSVD<MatrixType, FullPivHouseholderQRPreconditioner>& svd, const MatrixType& matrix) argument 92 svd.m_workMatrix = m_qr.matrixQR().block(0,0,matrix.cols(),matrix.cols()).template triangularView<Upper>(); 93 if(svd 122 allocate(const JacobiSVD<MatrixType, FullPivHouseholderQRPreconditioner>& svd) argument 133 run(JacobiSVD<MatrixType, FullPivHouseholderQRPreconditioner>& svd, const MatrixType& matrix) argument 161 allocate(const JacobiSVD<MatrixType, ColPivHouseholderQRPreconditioner>& svd) argument 172 run(JacobiSVD<MatrixType, ColPivHouseholderQRPreconditioner>& svd, const MatrixType& matrix) argument 214 allocate(const JacobiSVD<MatrixType, ColPivHouseholderQRPreconditioner>& svd) argument 226 run(JacobiSVD<MatrixType, ColPivHouseholderQRPreconditioner>& svd, const MatrixType& matrix) argument 261 allocate(const JacobiSVD<MatrixType, HouseholderQRPreconditioner>& svd) argument 272 run(JacobiSVD<MatrixType, HouseholderQRPreconditioner>& svd, const MatrixType& matrix) argument 313 allocate(const JacobiSVD<MatrixType, HouseholderQRPreconditioner>& svd) argument 325 run(JacobiSVD<MatrixType, HouseholderQRPreconditioner>& svd, const MatrixType& matrix) argument 372 run(typename SVD::WorkMatrixType& work_matrix, SVD& svd, Index p, Index q) argument [all...] |