|
| enum | {
RowsAtCompileTime = MatrixType::RowsAtCompileTime
, ColsAtCompileTime = MatrixType::ColsAtCompileTime
, DiagSizeAtCompileTime = EIGEN_SIZE_MIN_PREFER_DYNAMIC(RowsAtCompileTime, ColsAtCompileTime)
, MaxRowsAtCompileTime = MatrixType::MaxRowsAtCompileTime
,
MaxColsAtCompileTime = MatrixType::MaxColsAtCompileTime
, MaxDiagSizeAtCompileTime = EIGEN_SIZE_MIN_PREFER_FIXED(MaxRowsAtCompileTime, MaxColsAtCompileTime)
, MatrixOptions = MatrixType::Options
} |
| |
|
typedef _MatrixType | MatrixType |
| |
|
typedef MatrixType::Scalar | Scalar |
| |
|
typedef NumTraits< typenameMatrixType::Scalar >::Real | RealScalar |
| |
|
typedef NumTraits< RealScalar >::Literal | Literal |
| |
|
typedef Base::MatrixUType | MatrixUType |
| |
|
typedef Base::MatrixVType | MatrixVType |
| |
|
typedef Base::SingularValuesType | SingularValuesType |
| |
|
typedef Matrix< Scalar, Dynamic, Dynamic, ColMajor > | MatrixX |
| |
|
typedef Matrix< RealScalar, Dynamic, Dynamic, ColMajor > | MatrixXr |
| |
|
typedef Matrix< RealScalar, Dynamic, 1 > | VectorType |
| |
|
typedef Array< RealScalar, Dynamic, 1 > | ArrayXr |
| |
|
typedef Array< Index, 1, Dynamic > | ArrayXi |
| |
|
typedef Ref< ArrayXr > | ArrayRef |
| |
|
typedef Ref< ArrayXi > | IndicesRef |
| |
| enum | |
| |
|
typedef internal::traits< BDCSVD< _MatrixType > >::MatrixType | MatrixType |
| |
|
typedef MatrixType::Scalar | Scalar |
| |
|
typedef NumTraits< typenameMatrixType::Scalar >::Real | RealScalar |
| |
|
typedef Eigen::internal::traits< SVDBase >::StorageIndex | StorageIndex |
| |
| typedef Eigen::Index | Index |
| |
|
typedef Matrix< Scalar, RowsAtCompileTime, RowsAtCompileTime, MatrixOptions, MaxRowsAtCompileTime, MaxRowsAtCompileTime > | MatrixUType |
| |
|
typedef Matrix< Scalar, ColsAtCompileTime, ColsAtCompileTime, MatrixOptions, MaxColsAtCompileTime, MaxColsAtCompileTime > | MatrixVType |
| |
|
typedef internal::plain_diag_type< MatrixType, RealScalar >::type | SingularValuesType |
| |
| enum | {
RowsAtCompileTime = internal::traits<Derived>::RowsAtCompileTime
, ColsAtCompileTime = internal::traits<Derived>::ColsAtCompileTime
, SizeAtCompileTime
, MaxRowsAtCompileTime = internal::traits<Derived>::MaxRowsAtCompileTime
,
MaxColsAtCompileTime = internal::traits<Derived>::MaxColsAtCompileTime
, MaxSizeAtCompileTime
, IsVectorAtCompileTime
, NumDimensions = int(MaxSizeAtCompileTime) == 1 ? 0 : bool(IsVectorAtCompileTime) ? 1 : 2
} |
| |
|
typedef EigenBase< Derived > | Base |
| |
|
typedef internal::traits< Derived >::Scalar | Scalar |
| |
|
typedef Scalar | CoeffReturnType |
| |
|
typedef internal::add_const< Transpose< constDerived > >::type | ConstTransposeReturnType |
| |
|
typedef internal::conditional< NumTraits< Scalar >::IsComplex, CwiseUnaryOp< internal::scalar_conjugate_op< Scalar >, ConstTransposeReturnType >, ConstTransposeReturnType >::type | AdjointReturnType |
| |
| typedef Eigen::Index | Index |
| | The interface type of indices.
|
| |
|
typedef internal::traits< Derived >::StorageKind | StorageKind |
| |
|
| | BDCSVD () |
| | Default Constructor.
|
| |
| | BDCSVD (Index rows, Index cols, unsigned int computationOptions=0) |
| | Default Constructor with memory preallocation.
|
| |
| | BDCSVD (const MatrixType &matrix, unsigned int computationOptions=0) |
| | Constructor performing the decomposition of given matrix.
|
| |
| BDCSVD & | compute (const MatrixType &matrix, unsigned int computationOptions) |
| | Method performing the decomposition of given matrix using custom options.
|
| |
| BDCSVD & | compute (const MatrixType &matrix) |
| | Method performing the decomposition of given matrix using current options.
|
| |
|
void | setSwitchSize (int s) |
| |
|
Index | rows () const |
| |
|
Index | cols () const |
| |
| bool | computeU () const |
| |
| bool | computeV () const |
| |
|
BDCSVD< _MatrixType > & | derived () |
| |
|
const BDCSVD< _MatrixType > & | derived () const |
| |
| const MatrixUType & | matrixU () const |
| |
| const MatrixVType & | matrixV () const |
| |
| const SingularValuesType & | singularValues () const |
| |
| Index | nonzeroSingularValues () const |
| |
| Index | rank () const |
| |
| BDCSVD< _MatrixType > & | setThreshold (const RealScalar &threshold) |
| |
| BDCSVD< _MatrixType > & | setThreshold (Default_t) |
| |
| RealScalar | threshold () const |
| |
| bool | computeU () const |
| |
| bool | computeV () const |
| |
|
Index | rows () const |
| |
|
Index | cols () const |
| |
| EIGEN_DEVICE_FUNC ComputationInfo | info () const |
| | Reports whether previous computation was successful.
|
| |
|
void | _solve_impl (const RhsType &rhs, DstType &dst) const |
| |
|
void | _solve_impl_transposed (const RhsType &rhs, DstType &dst) const |
| |
| | SolverBase () |
| |
| template<typename Rhs > |
| const Solve< Derived, Rhs > | solve (const MatrixBase< Rhs > &b) const |
| |
| ConstTransposeReturnType | transpose () const |
| |
| AdjointReturnType | adjoint () const |
| |
| EIGEN_DEVICE_FUNC Derived & | derived () |
| |
| EIGEN_DEVICE_FUNC const Derived & | derived () const |
| |
| EIGEN_DEVICE_FUNC Derived & | derived () |
| |
| EIGEN_DEVICE_FUNC const Derived & | derived () const |
| |
|
EIGEN_DEVICE_FUNC Derived & | const_cast_derived () const |
| |
|
EIGEN_DEVICE_FUNC const Derived & | const_derived () const |
| |
| EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
| |
| EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
| |
| EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index | size () const EIGEN_NOEXCEPT |
| |
|
template<typename Dest > |
| EIGEN_DEVICE_FUNC void | evalTo (Dest &dst) const |
| |
|
template<typename Dest > |
| EIGEN_DEVICE_FUNC void | addTo (Dest &dst) const |
| |
|
template<typename Dest > |
| EIGEN_DEVICE_FUNC void | subTo (Dest &dst) const |
| |
|
template<typename Dest > |
| EIGEN_DEVICE_FUNC void | applyThisOnTheRight (Dest &dst) const |
| |
|
template<typename Dest > |
| EIGEN_DEVICE_FUNC void | applyThisOnTheLeft (Dest &dst) const |
| |
template<typename _MatrixType>
class Eigen::BDCSVD< _MatrixType >
class Bidiagonal Divide and Conquer SVD
- Template Parameters
-
| _MatrixType | the type of the matrix of which we are computing the SVD decomposition |
This class first reduces the input matrix to bi-diagonal form using class UpperBidiagonalization, and then performs a divide-and-conquer diagonalization. Small blocks are diagonalized using class JacobiSVD. You can control the switching size with the setSwitchSize() method, default is 16. For small matrice (<16), it is thus preferable to directly use JacobiSVD. For larger ones, BDCSVD is highly recommended and can several order of magnitude faster.
- Warning
- this algorithm is unlikely to provide accurate result when compiled with unsafe math optimizations. For instance, this concerns Intel's compiler (ICC), which performs such optimization by default unless you compile with the
-fp-model precise option. Likewise, the -ffast-math option of GCC or clang will significantly degrade the accuracy.
- See also
- class JacobiSVD