MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include <vector>
#include <cassert>
#include "moab/Matrix3.hpp"
#include "moab/Core.hpp"
#include "moab/CartVect.hpp"
#include "TestUtil.hpp"
Go to the source code of this file.
Macros | |
#define | ACOS(x) acos( std::min( std::max( x, -1.0 ), 1.0 ) ) |
#define | CHECK_EIGVECREAL_EQUAL(EXP, ACT, EPS) check_equal_eigvect( ( EXP ), ( ACT ), ( EPS ), #EXP, #ACT, __LINE__, __FILE__ ) |
Functions | |
double | find_angle (const moab::CartVect &A, const moab::CartVect &B) |
void | check_equal_eigvect (const moab::CartVect &A, const moab::CartVect &B, double eps, const char *sA, const char *sB, int line, const char *file) |
void | test_EigenDecomp () |
int | main () |
#define ACOS | ( | x | ) | acos( std::min( std::max( x, -1.0 ), 1.0 ) ) |
Definition at line 10 of file test_Matrix3.cpp.
#define CHECK_EIGVECREAL_EQUAL | ( | EXP, | |
ACT, | |||
EPS | |||
) | check_equal_eigvect( ( EXP ), ( ACT ), ( EPS ), #EXP, #ACT, __LINE__, __FILE__ ) |
Definition at line 22 of file test_Matrix3.cpp.
void check_equal_eigvect | ( | const moab::CartVect & | A, |
const moab::CartVect & | B, | ||
double | eps, | ||
const char * | sA, | ||
const char * | sB, | ||
int | line, | ||
const char * | file | ||
) |
Definition at line 24 of file test_Matrix3.cpp.
References moab::angle(), check_equal(), eps, find_angle(), flag_error(), and moab::CartVect::length().
double find_angle | ( | const moab::CartVect & | A, |
const moab::CartVect & | B | ||
) |
Definition at line 12 of file test_Matrix3.cpp.
References ACOS, moab::dot(), and moab::CartVect::length().
Referenced by check_equal_eigvect().
int main | ( | ) |
Definition at line 58 of file test_Matrix3.cpp.
References RUN_TEST, and test_EigenDecomp().
void test_EigenDecomp | ( | ) |
Definition at line 70 of file test_Matrix3.cpp.
References CHECK_EIGVECREAL_EQUAL, CHECK_ERR, CHECK_REAL_EQUAL, moab::Matrix3::col(), moab::Matrix3::eigen_decomposition(), ErrorCode, moab::CartVect::length(), moab::Matrix::matrix_vector(), and moab::CartVect::normalize().
Referenced by main().