12 #define EIGEN_STACK_ALLOCATION_LIMIT 0 13 #define EIGEN_RUNTIME_NO_MALLOC 17 #define SVD_DEFAULT(M) JacobiSVD<M> 18 #define SVD_FOR_MIN_NORM(M) JacobiSVD<M,ColPivHouseholderQRPreconditioner> 22 template<
typename MatrixType>
32 if(m.rows()==m.cols())
38 svd_verify_assert<JacobiSVD<MatrixType> >(
m);
39 svd_verify_assert<JacobiSVD<MatrixType, FullPivHouseholderQRPreconditioner> >(
m,
true);
40 svd_verify_assert<JacobiSVD<MatrixType, ColPivHouseholderQRPreconditioner> >(
m);
41 svd_verify_assert<JacobiSVD<MatrixType, HouseholderQRPreconditioner> >(
m);
46 ColsAtCompileTime = MatrixType::ColsAtCompileTime
53 if (ColsAtCompileTime ==
Dynamic)
62 template<typename MatrixType>
65 enum { Size = MatrixType::RowsAtCompileTime };
108 int r = internal::random<int>(1, 30),
109 c = internal::random<int>(1, 30);
#define CALL_SUBTEST_12(FUNC)
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)
#define CALL_SUBTEST_9(FUNC)
#define CALL_SUBTEST_6(FUNC)
#define CALL_SUBTEST_4(FUNC)
#define EIGEN_NOT_A_MACRO
bool operator<(const Bar &, const Bar &)
#define CALL_SUBTEST_13(FUNC)
#define CALL_SUBTEST_3(FUNC)
#define CALL_SUBTEST_7(FUNC)
#define CALL_SUBTEST_11(FUNC)
void jacobisvd_verify_assert(const MatrixType &m)
#define CALL_SUBTEST_10(FUNC)
#define VERIFY_IS_APPROX(a, b)
#define CALL_SUBTEST_1(FUNC)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
#define CALL_SUBTEST_8(FUNC)
EIGEN_DECLARE_TEST(jacobisvd)
NumTraits< Scalar >::Real RealScalar
#define TEST_SET_BUT_UNUSED_VARIABLE(X)
#define CALL_SUBTEST_5(FUNC)
void jacobisvd(const MatrixType &a=MatrixType(), bool pickrandom=true)
#define CALL_SUBTEST(FUNC)
#define EIGEN_TEST_MAX_SIZE
Two-sided Jacobi SVD decomposition of a rectangular matrix.
JacobiSVD & compute(const MatrixType &matrix, unsigned int computationOptions)
Method performing the decomposition of given matrix using custom options.
void svd_all_trivial_2x2(void(*cb)(const MatrixType &, bool))
#define CALL_SUBTEST_2(FUNC)
The matrix class, also used for vectors and row-vectors.