14 #define EIGEN_STACK_ALLOCATION_LIMIT 0 15 #define EIGEN_RUNTIME_NO_MALLOC 23 #define SVD_DEFAULT(M) BDCSVD<M> 24 #define SVD_FOR_MIN_NORM(M) BDCSVD<M> 28 template<
typename MatrixType>
38 template<
typename MatrixType>
41 enum { Size = MatrixType::RowsAtCompileTime };
52 template<
typename MatrixType>
76 CALL_SUBTEST_3(( bdcsvd<Matrix3f>() ));
77 CALL_SUBTEST_4(( bdcsvd<Matrix4d>() ));
87 CALL_SUBTEST_7((
bdcsvd(MatrixXf(r,
c)) ));
89 CALL_SUBTEST_10((
bdcsvd(MatrixXd(r,
c)) ));
91 CALL_SUBTEST_8((
bdcsvd(MatrixXcd(r,
c)) ));
100 CALL_SUBTEST_1(( bdcsvd_method<Matrix2cd>() ));
101 CALL_SUBTEST_3(( bdcsvd_method<Matrix3f>() ));
110 CALL_SUBTEST_2( svd_underoverflow<void>() );
void svd_test_all_computation_options(const MatrixType &m, bool full_only)
void svd_fill_random(MatrixType &m, int Option=0)
#define VERIFY_RAISES_ASSERT(a)
const SingularValuesType & singularValues() const
void bdcsvd(const MatrixType &a=MatrixType(), bool pickrandom=true)
#define VERIFY_IS_APPROX(a, b)
void compare_bdc_jacobi(const MatrixType &a=MatrixType(), unsigned int computationOptions=0)
const MatrixVType & matrixV() const
const MatrixUType & matrixU() const
NumTraits< Scalar >::Real RealScalar
class Bidiagonal Divide and Conquer SVD
#define TEST_SET_BUT_UNUSED_VARIABLE(X)
#define CALL_SUBTEST(FUNC)
#define EIGEN_TEST_MAX_SIZE
Two-sided Jacobi SVD decomposition of a rectangular matrix.
void svd_all_trivial_2x2(void(*cb)(const MatrixType &, bool))
void svd_verify_assert(const MatrixType &m)
The matrix class, also used for vectors and row-vectors.