Classes | Namespaces | Defines | Functions | Variables
main.h File Reference
#include <cstdlib>
#include <cerrno>
#include <ctime>
#include <iostream>
#include <string>
#include <vector>
#include <typeinfo>
#include <Eigen/QR>
Include dependency graph for main.h:

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_MAKE_STRING(S)   EI_PP_MAKE_STRING2(S)
#define EI_PP_MAKE_STRING2(S)   #S
#define eigen_assert(a)
#define EIGEN_DEFAULT_IO_FORMAT   IOFormat(4, 0, " ", "\n", "", "", "", "")
#define EIGEN_INTERNAL_DEBUGGING
#define EIGEN_USE_CUSTOM_ASSERT
#define VERIFY(a)   verify_impl(a, g_test_stack.back().c_str(), __FILE__, __LINE__, EI_PP_MAKE_STRING(a))
#define VERIFY_IS_APPROX(a, b)   VERIFY(test_isApprox(a, b))
#define VERIFY_IS_APPROX_OR_LESS_THAN(a, b)   VERIFY(test_isApproxOrLessThan(a, b))
#define VERIFY_IS_EQUAL(a, b)   VERIFY(test_is_equal(a, b))
#define VERIFY_IS_MUCH_SMALLER_THAN(a, b)   VERIFY(test_isMuchSmallerThan(a, b))
#define VERIFY_IS_NOT_APPROX(a, b)   VERIFY(!test_isApprox(a, b))
#define VERIFY_IS_NOT_APPROX_OR_LESS_THAN(a, b)   VERIFY(!test_isApproxOrLessThan(a, b))
#define VERIFY_IS_NOT_MUCH_SMALLER_THAN(a, b)   VERIFY(!test_isMuchSmallerThan(a, b))
#define VERIFY_IS_UNITARY(a)   VERIFY(test_isUnitary(a))
#define VERIFY_RAISES_ASSERT(a)

Functions

template<typename MatrixType >
void Eigen::createRandomPIMatrixOfRank (typename MatrixType::Index desired_rank, typename MatrixType::Index rows, typename MatrixType::Index cols, MatrixType &m)
void EIGEN_CAT (test_, EIGEN_TEST_FUNC)()
int main (int argc, char *argv[])
void set_repeat_from_string (const char *str)
void set_seed_from_string (const char *str)
template<typename T , typename U >
bool Eigen::test_is_equal (const T &actual, const U &expected)
bool Eigen::test_isApprox (const int &a, const int &b)
bool Eigen::test_isApprox (const float &a, const float &b)
bool Eigen::test_isApprox (const double &a, const double &b)
bool Eigen::test_isApprox (const std::complex< float > &a, const std::complex< float > &b)
bool Eigen::test_isApprox (const std::complex< double > &a, const std::complex< double > &b)
bool Eigen::test_isApprox (const long double &a, const long double &b)
template<typename Type1 , typename Type2 >
bool Eigen::test_isApprox (const Type1 &a, const Type2 &b)
bool Eigen::test_isApproxOrLessThan (const int &a, const int &b)
bool Eigen::test_isApproxOrLessThan (const float &a, const float &b)
bool Eigen::test_isApproxOrLessThan (const double &a, const double &b)
bool Eigen::test_isApproxOrLessThan (const long double &a, const long double &b)
template<typename Scalar , typename ScalarRef >
bool Eigen::test_isApproxWithRef (const Scalar &a, const Scalar &b, const ScalarRef &ref)
bool Eigen::test_isMuchSmallerThan (const int &a, const int &b)
bool Eigen::test_isMuchSmallerThan (const float &a, const float &b)
bool Eigen::test_isMuchSmallerThan (const double &a, const double &b)
bool Eigen::test_isMuchSmallerThan (const std::complex< float > &a, const std::complex< float > &b)
bool Eigen::test_isMuchSmallerThan (const std::complex< double > &a, const std::complex< double > &b)
bool Eigen::test_isMuchSmallerThan (const long double &a, const long double &b)
template<typename Derived1 , typename Derived2 >
bool Eigen::test_isMuchSmallerThan (const MatrixBase< Derived1 > &m1, const MatrixBase< Derived2 > &m2)
template<typename Derived >
bool Eigen::test_isMuchSmallerThan (const MatrixBase< Derived > &m, const typename NumTraits< typename internal::traits< Derived >::Scalar >::Real &s)
template<typename Derived >
bool Eigen::test_isUnitary (const MatrixBase< Derived > &m)
template<typename T >
NumTraits< T >::Real Eigen::test_precision ()
template<>
double Eigen::test_precision< double > ()
template<>
float Eigen::test_precision< float > ()
template<>
long double Eigen::test_precision< long double > ()
template<>
double Eigen::test_precision< std::complex< double > > ()
template<>
float Eigen::test_precision< std::complex< float > > ()
template<typename T >
std::string type_name ()
template<>
std::string type_name< double > ()
template<>
std::string type_name< float > ()
template<>
std::string type_name< int > ()
template<>
std::string type_name< std::complex< double > > ()
template<>
std::string type_name< std::complex< float > > ()
template<>
std::string type_name< std::complex< int > > ()
static void verify_impl (bool condition, const char *testname, const char *file, int line, const char *condition_as_string)

Variables

static bool Eigen::g_has_set_repeat
static bool Eigen::g_has_set_seed
static unsigned int Eigen::g_seed
static bool Eigen::report_on_cerr_on_assert_failure = true

Define Documentation

#define CALL_SUBTEST (   FUNC)
Value:
do { \
    g_test_stack.push_back(EI_PP_MAKE_STRING(FUNC)); \
    FUNC; \
    g_test_stack.pop_back(); \
  } while (0)

Definition at line 192 of file main.h.

#define CALL_SUBTEST_1 (   FUNC)

Definition at line 201 of file main.h.

#define CALL_SUBTEST_10 (   FUNC)

Definition at line 255 of file main.h.

#define CALL_SUBTEST_11 (   FUNC)

Definition at line 261 of file main.h.

#define CALL_SUBTEST_12 (   FUNC)

Definition at line 267 of file main.h.

#define CALL_SUBTEST_13 (   FUNC)

Definition at line 273 of file main.h.

#define CALL_SUBTEST_14 (   FUNC)

Definition at line 279 of file main.h.

#define CALL_SUBTEST_15 (   FUNC)

Definition at line 285 of file main.h.

#define CALL_SUBTEST_16 (   FUNC)

Definition at line 291 of file main.h.

#define CALL_SUBTEST_2 (   FUNC)

Definition at line 207 of file main.h.

#define CALL_SUBTEST_3 (   FUNC)

Definition at line 213 of file main.h.

#define CALL_SUBTEST_4 (   FUNC)

Definition at line 219 of file main.h.

#define CALL_SUBTEST_5 (   FUNC)

Definition at line 225 of file main.h.

#define CALL_SUBTEST_6 (   FUNC)

Definition at line 231 of file main.h.

#define CALL_SUBTEST_7 (   FUNC)

Definition at line 237 of file main.h.

#define CALL_SUBTEST_8 (   FUNC)

Definition at line 243 of file main.h.

#define CALL_SUBTEST_9 (   FUNC)

Definition at line 249 of file main.h.

#define DEFAULT_REPEAT   10

Definition at line 47 of file main.h.

#define EI_PP_MAKE_STRING (   S)    EI_PP_MAKE_STRING2(S)

Definition at line 63 of file main.h.

#define EI_PP_MAKE_STRING2 (   S)    #S

Definition at line 62 of file main.h.

#define eigen_assert (   a)
Value:
if( (!Eigen::internal::copy_bool(a)) && (!no_more_assert) )\
      {                                       \
        Eigen::no_more_assert = true;         \
        if(report_on_cerr_on_assert_failure)  \
          eigen_plain_assert(a);              \
        else                                  \
          throw Eigen::eigen_assert_exception(); \
      }

Definition at line 136 of file main.h.

#define EIGEN_DEFAULT_IO_FORMAT   IOFormat(4, 0, " ", "\n", "", "", "", "")

Definition at line 65 of file main.h.

Definition at line 167 of file main.h.

Definition at line 158 of file main.h.

#define VERIFY (   a)    verify_impl(a, g_test_stack.back().c_str(), __FILE__, __LINE__, EI_PP_MAKE_STRING(a))

Definition at line 180 of file main.h.

#define VERIFY_IS_APPROX (   a,
  b 
)    VERIFY(test_isApprox(a, b))

Definition at line 183 of file main.h.

#define VERIFY_IS_APPROX_OR_LESS_THAN (   a,
  b 
)    VERIFY(test_isApproxOrLessThan(a, b))

Definition at line 187 of file main.h.

#define VERIFY_IS_EQUAL (   a,
  b 
)    VERIFY(test_is_equal(a, b))

Definition at line 182 of file main.h.

#define VERIFY_IS_MUCH_SMALLER_THAN (   a,
  b 
)    VERIFY(test_isMuchSmallerThan(a, b))

Definition at line 185 of file main.h.

#define VERIFY_IS_NOT_APPROX (   a,
  b 
)    VERIFY(!test_isApprox(a, b))

Definition at line 184 of file main.h.

#define VERIFY_IS_NOT_APPROX_OR_LESS_THAN (   a,
  b 
)    VERIFY(!test_isApproxOrLessThan(a, b))

Definition at line 188 of file main.h.

#define VERIFY_IS_NOT_MUCH_SMALLER_THAN (   a,
  b 
)    VERIFY(!test_isMuchSmallerThan(a, b))

Definition at line 186 of file main.h.

#define VERIFY_IS_UNITARY (   a)    VERIFY(test_isUnitary(a))

Definition at line 190 of file main.h.

#define VERIFY_RAISES_ASSERT (   a)
Value:

Definition at line 145 of file main.h.


Function Documentation

void EIGEN_CAT ( test_  ,
EIGEN_TEST_FUNC   
)
int main ( int  argc,
char *  argv[] 
)

Definition at line 487 of file main.h.

void set_repeat_from_string ( const char *  str)

Definition at line 463 of file main.h.

void set_seed_from_string ( const char *  str)

Definition at line 475 of file main.h.

template<typename T >
std::string type_name ( )

Definition at line 450 of file main.h.

template<>
std::string type_name< double > ( )

Definition at line 452 of file main.h.

template<>
std::string type_name< float > ( )

Definition at line 451 of file main.h.

template<>
std::string type_name< int > ( )

Definition at line 453 of file main.h.

template<>
std::string type_name< std::complex< double > > ( )

Definition at line 455 of file main.h.

template<>
std::string type_name< std::complex< float > > ( )

Definition at line 454 of file main.h.

template<>
std::string type_name< std::complex< int > > ( )

Definition at line 456 of file main.h.

static void verify_impl ( bool  condition,
const char *  testname,
const char *  file,
int  line,
const char *  condition_as_string 
) [static]

Definition at line 170 of file main.h.



re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:46