10 #define EIGEN_NO_STATIC_ASSERT 14 #undef VERIFY_IS_APPROX 15 #define VERIFY_IS_APPROX(a, b) VERIFY((a)==(b)); 16 #undef VERIFY_IS_NOT_APPROX 17 #define VERIFY_IS_NOT_APPROX(a, b) VERIFY((a)!=(b)); 30 m2 = MatrixType::Random(rows, cols),
31 mzero = MatrixType::Zero(rows, cols);
34 m1 = MatrixType::Random(rows, cols);
35 }
while(
m1 == mzero ||
m1 == m2);
41 s1 = internal::random<Scalar>();
65 m2 = MatrixType::Random(rows, cols),
67 mzero = MatrixType::Zero(rows, cols);
70 SquareMatrixType identity = SquareMatrixType::Identity(rows, rows),
71 square = SquareMatrixType::Random(rows, rows);
73 v2 = VectorType::Random(rows),
74 vzero = VectorType::Zero(rows);
77 m1 = MatrixType::Random(rows, cols);
78 }
while(
m1 == mzero ||
m1 == m2);
81 v1 = VectorType::Random(rows);
82 }
while(
v1 == vzero ||
v1 == v2);
95 m3.real() =
m1.real();
112 s1 = internal::random<Scalar>();
139 if(
sizeof(
long)>
sizeof(
int)) {
#define CALL_SUBTEST_9(FUNC)
#define CALL_SUBTEST_6(FUNC)
#define CALL_SUBTEST_4(FUNC)
EIGEN_DECLARE_TEST(integer_types)
#define CALL_SUBTEST_3(FUNC)
#define CALL_SUBTEST_7(FUNC)
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
#define VERIFY_IS_APPROX(a, b)
EIGEN_DEVICE_FUNC const SquareReturnType square() const
#define VERIFY_IS_EQUAL(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)
void integer_types_extra()
#define CALL_SUBTEST_5(FUNC)
void signed_integer_type_tests(const MatrixType &m)
void integer_type_tests(const MatrixType &m)
#define VERIFY_IS_NOT_APPROX(a, b)
#define CALL_SUBTEST_2(FUNC)
The matrix class, also used for vectors and row-vectors.