/external/eigen/doc/snippets/ |
H A D | JacobiSVD_basic.cpp | 3 JacobiSVD<MatrixXf> svd(m, ComputeThinU | ComputeThinV); 4 cout << "Its singular values are:" << endl << svd.singularValues() << endl; 5 cout << "Its left singular vectors are the columns of the thin U matrix:" << endl << svd.matrixU() << endl; 6 cout << "Its right singular vectors are the columns of the thin V matrix:" << endl << svd.matrixV() << endl; 9 cout << "A least-squares solution of m*x = rhs is:" << endl << svd.solve(rhs) << endl;
|
/external/eigen/unsupported/test/ |
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...] |
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 | 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);
|
/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/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/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/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/Eigen/src/Geometry/ |
H A D | Umeyama.h | 132 JacobiSVD<MatrixType> svd(sigma, ComputeFullU | ComputeFullV); 142 const VectorType& d = svd.singularValues(); 145 if ( svd.matrixU().determinant() * svd.matrixV().determinant() > Scalar(0) ) { 146 Rt.block(0,0,m,m).noalias() = svd.matrixU()*svd.matrixV().transpose(); 149 Rt.block(0,0,m,m).noalias() = svd.matrixU() * S.asDiagonal() * svd.matrixV().transpose(); 153 Rt.block(0,0,m,m).noalias() = svd.matrixU() * S.asDiagonal() * svd [all...] |
H A D | Transform.h | 1021 JacobiSVD<LinearMatrixType> svd(linear(), ComputeFullU | ComputeFullV); 1023 Scalar x = (svd.matrixU() * svd.matrixV().adjoint()).determinant(); // so x has absolute value 1 1024 VectorType sv(svd.singularValues()); 1026 if(scaling) scaling->lazyAssign(svd.matrixV() * sv.asDiagonal() * svd.matrixV().adjoint()); 1029 LinearMatrixType m(svd.matrixU()); 1031 rotation->lazyAssign(m * svd.matrixV().adjoint()); 1050 JacobiSVD<LinearMatrixType> svd(linear(), ComputeFullU | ComputeFullV); 1052 Scalar x = (svd [all...] |
H A D | Quaternion.h | 591 JacobiSVD<Matrix<Scalar,2,3> > svd(m, ComputeFullV); 592 Vector3 axis = svd.matrixV().col(2);
|
/external/eigen/Eigen/src/Eigen2Support/Geometry/ |
H A D | Transform.h | 621 JacobiSVD<LinearMatrixType> svd(linear(), ComputeFullU|ComputeFullV); 622 Scalar x = (svd.matrixU() * svd.matrixV().adjoint()).determinant(); // so x has absolute value 1 623 Matrix<Scalar, Dim, 1> sv(svd.singularValues()); 627 scaling->noalias() = svd.matrixV() * sv.asDiagonal() * svd.matrixV().adjoint(); 631 LinearMatrixType m(svd.matrixU()); 633 rotation->noalias() = m * svd.matrixV().adjoint(); 652 JacobiSVD<LinearMatrixType> svd(linear(), ComputeFullU|ComputeFullV); 653 Scalar x = (svd [all...] |
/external/ceres-solver/internal/ceres/ |
H A D | covariance_impl.cc | 588 Eigen::JacobiSVD<Matrix> svd(dense_jacobian, 593 const Vector singular_values = svd.singularValues(); 635 svd.matrixV() * 637 svd.matrixV().transpose();
|
/external/eigen/Eigen/src/Core/ |
H A D | MatrixBase.h | 388 SVD<PlainObject> svd() const;
|
/external/eigen/Eigen/src/Eigen2Support/ |
H A D | SVD.h | 509 * \sa MatrixBase::svd(), LU::solve(), LLT::solve() 630 MatrixBase<Derived>::svd() const
|