#include <cstdlib>#include <ctime>#include <iostream>#include <string>#include <vector>#include <Eigen/Array>

Go to the source code of this file.
Classes | |
| struct | Eigen::eigen_assert_exception |
| struct | GetDifferentType< double > |
| struct | GetDifferentType< float > |
| struct | GetDifferentType< std::complex< T > > |
Namespaces | |
| namespace | Eigen |
Defines | |
| #define | CALL_SUBTEST(FUNC) |
| #define | CALL_SUBTEST_1(FUNC) |
| #define | CALL_SUBTEST_10(FUNC) |
| #define | CALL_SUBTEST_11(FUNC) |
| #define | CALL_SUBTEST_12(FUNC) |
| #define | CALL_SUBTEST_13(FUNC) |
| #define | CALL_SUBTEST_14(FUNC) |
| #define | CALL_SUBTEST_15(FUNC) |
| #define | CALL_SUBTEST_16(FUNC) |
| #define | CALL_SUBTEST_2(FUNC) |
| #define | CALL_SUBTEST_3(FUNC) |
| #define | CALL_SUBTEST_4(FUNC) |
| #define | CALL_SUBTEST_5(FUNC) |
| #define | CALL_SUBTEST_6(FUNC) |
| #define | CALL_SUBTEST_7(FUNC) |
| #define | CALL_SUBTEST_8(FUNC) |
| #define | CALL_SUBTEST_9(FUNC) |
| #define | DEFAULT_REPEAT 10 |
| #define | EI_PP_CAT(a, b) EI_PP_CAT2(a,b) |
| #define | EI_PP_CAT2(a, b) a ## b |
| #define | EI_PP_MAKE_STRING(S) EI_PP_MAKE_STRING2(S) |
| #define | EI_PP_MAKE_STRING2(S) #S |
| #define | eigen_assert(a) |
| #define | EIGEN_INTERNAL_DEBUGGING |
| #define | EIGEN_NICE_RANDOM |
| #define | EIGEN_USE_CUSTOM_ASSERT |
| #define | VERIFY(a) |
| #define | VERIFY_IS_APPROX(a, b) VERIFY(test_ei_isApprox(a, b)) |
| #define | VERIFY_IS_APPROX_OR_LESS_THAN(a, b) VERIFY(test_ei_isApproxOrLessThan(a, b)) |
| #define | VERIFY_IS_MUCH_SMALLER_THAN(a, b) VERIFY(test_ei_isMuchSmallerThan(a, b)) |
| #define | VERIFY_IS_NOT_APPROX(a, b) VERIFY(!test_ei_isApprox(a, b)) |
| #define | VERIFY_IS_NOT_APPROX_OR_LESS_THAN(a, b) VERIFY(!test_ei_isApproxOrLessThan(a, b)) |
| #define | VERIFY_IS_NOT_MUCH_SMALLER_THAN(a, b) VERIFY(!test_ei_isMuchSmallerThan(a, b)) |
| #define | VERIFY_RAISES_ASSERT(a) |
Functions | |
| void | EI_PP_CAT (test_, EIGEN_TEST_FUNC)() |
| int | main (int argc, char *argv[]) |
| bool | Eigen::test_ei_isApprox (const int &a, const int &b) |
| bool | Eigen::test_ei_isApprox (const float &a, const float &b) |
| bool | Eigen::test_ei_isApprox (const double &a, const double &b) |
| bool | Eigen::test_ei_isApprox (const std::complex< float > &a, const std::complex< float > &b) |
| bool | Eigen::test_ei_isApprox (const std::complex< double > &a, const std::complex< double > &b) |
| bool | Eigen::test_ei_isApprox (const long double &a, const long double &b) |
| template<typename Type1 , typename Type2 > | |
| bool | Eigen::test_ei_isApprox (const Type1 &a, const Type2 &b) |
| bool | Eigen::test_ei_isApproxOrLessThan (const int &a, const int &b) |
| bool | Eigen::test_ei_isApproxOrLessThan (const float &a, const float &b) |
| bool | Eigen::test_ei_isApproxOrLessThan (const double &a, const double &b) |
| bool | Eigen::test_ei_isApproxOrLessThan (const long double &a, const long double &b) |
| bool | Eigen::test_ei_isMuchSmallerThan (const int &a, const int &b) |
| bool | Eigen::test_ei_isMuchSmallerThan (const float &a, const float &b) |
| bool | Eigen::test_ei_isMuchSmallerThan (const double &a, const double &b) |
| bool | Eigen::test_ei_isMuchSmallerThan (const std::complex< float > &a, const std::complex< float > &b) |
| bool | Eigen::test_ei_isMuchSmallerThan (const std::complex< double > &a, const std::complex< double > &b) |
| bool | Eigen::test_ei_isMuchSmallerThan (const long double &a, const long double &b) |
| template<typename Derived1 , typename Derived2 > | |
| bool | Eigen::test_ei_isMuchSmallerThan (const MatrixBase< Derived1 > &m1, const MatrixBase< Derived2 > &m2) |
| template<typename Derived > | |
| bool | Eigen::test_ei_isMuchSmallerThan (const MatrixBase< Derived > &m, const typename NumTraits< typename ei_traits< Derived >::Scalar >::Real &s) |
| template<typename T > | |
| NumTraits< T >::Real | Eigen::test_precision () |
| template<> | |
| double | Eigen::test_precision< double > () |
| template<> | |
| float | Eigen::test_precision< float > () |
| template<> | |
| int | Eigen::test_precision< int > () |
| template<> | |
| long double | Eigen::test_precision< long double > () |
| template<> | |
| double | Eigen::test_precision< std::complex< double > > () |
| template<> | |
| float | Eigen::test_precision< std::complex< float > > () |
Variables | |
| static int | Eigen::g_repeat |
| static std::vector< std::string > | Eigen::g_test_stack |
| static bool | Eigen::no_more_assert = false |
| static const bool | Eigen::should_raise_an_assert = false |
| #define CALL_SUBTEST | ( | FUNC | ) |
do { \ g_test_stack.push_back(EI_PP_MAKE_STRING(FUNC)); \ FUNC; \ g_test_stack.pop_back(); \ } while (0)
Definition at line 158 of file eigen2/main.h.
| #define CALL_SUBTEST_1 | ( | FUNC | ) |
Definition at line 249 of file eigen2/main.h.
| #define CALL_SUBTEST_10 | ( | FUNC | ) |
Definition at line 303 of file eigen2/main.h.
| #define CALL_SUBTEST_11 | ( | FUNC | ) |
Definition at line 309 of file eigen2/main.h.
| #define CALL_SUBTEST_12 | ( | FUNC | ) |
Definition at line 315 of file eigen2/main.h.
| #define CALL_SUBTEST_13 | ( | FUNC | ) |
Definition at line 321 of file eigen2/main.h.
| #define CALL_SUBTEST_14 | ( | FUNC | ) |
Definition at line 327 of file eigen2/main.h.
| #define CALL_SUBTEST_15 | ( | FUNC | ) |
Definition at line 333 of file eigen2/main.h.
| #define CALL_SUBTEST_16 | ( | FUNC | ) |
Definition at line 339 of file eigen2/main.h.
| #define CALL_SUBTEST_2 | ( | FUNC | ) |
Definition at line 255 of file eigen2/main.h.
| #define CALL_SUBTEST_3 | ( | FUNC | ) |
Definition at line 261 of file eigen2/main.h.
| #define CALL_SUBTEST_4 | ( | FUNC | ) |
Definition at line 267 of file eigen2/main.h.
| #define CALL_SUBTEST_5 | ( | FUNC | ) |
Definition at line 273 of file eigen2/main.h.
| #define CALL_SUBTEST_6 | ( | FUNC | ) |
Definition at line 279 of file eigen2/main.h.
| #define CALL_SUBTEST_7 | ( | FUNC | ) |
Definition at line 285 of file eigen2/main.h.
| #define CALL_SUBTEST_8 | ( | FUNC | ) |
Definition at line 291 of file eigen2/main.h.
| #define CALL_SUBTEST_9 | ( | FUNC | ) |
Definition at line 297 of file eigen2/main.h.
| #define DEFAULT_REPEAT 10 |
Definition at line 36 of file eigen2/main.h.
Definition at line 48 of file eigen2/main.h.
| #define EI_PP_CAT2 | ( | a, | |
| b | |||
| ) | a ## b |
Definition at line 47 of file eigen2/main.h.
| #define EI_PP_MAKE_STRING | ( | S | ) | EI_PP_MAKE_STRING2(S) |
Definition at line 45 of file eigen2/main.h.
| #define EI_PP_MAKE_STRING2 | ( | S | ) | #S |
Definition at line 44 of file eigen2/main.h.
| #define eigen_assert | ( | a | ) |
if( (!Eigen::internal::copy_bool(a)) && (!no_more_assert) ) \ { \ Eigen::no_more_assert = true; \ throw Eigen::eigen_assert_exception(); \ }
Definition at line 116 of file eigen2/main.h.
| #define EIGEN_INTERNAL_DEBUGGING |
Definition at line 140 of file eigen2/main.h.
| #define EIGEN_NICE_RANDOM |
Definition at line 141 of file eigen2/main.h.
| #define EIGEN_USE_CUSTOM_ASSERT |
Definition at line 131 of file eigen2/main.h.
do { if (!(a)) { \ std::cerr << "Test " << g_test_stack.back() << " failed in "EI_PP_MAKE_STRING(__FILE__) << " (" << EI_PP_MAKE_STRING(__LINE__) << ")" \ << std::endl << " " << EI_PP_MAKE_STRING(a) << std::endl << std::endl; \ abort(); \ } } while (0)
Definition at line 145 of file eigen2/main.h.
Definition at line 151 of file eigen2/main.h.
Definition at line 155 of file eigen2/main.h.
Definition at line 153 of file eigen2/main.h.
Definition at line 152 of file eigen2/main.h.
Definition at line 156 of file eigen2/main.h.
Definition at line 154 of file eigen2/main.h.
| #define VERIFY_RAISES_ASSERT | ( | a | ) |
{ \
Eigen::no_more_assert = false; \
try { a; VERIFY(Eigen::should_raise_an_assert && # a); } \
catch (Eigen::eigen_assert_exception e) { VERIFY(true); } \
}
Definition at line 123 of file eigen2/main.h.
| void EI_PP_CAT | ( | test_ | , |
| EIGEN_TEST_FUNC | |||
| ) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 344 of file eigen2/main.h.