MOAB: Mesh Oriented datABase
(version 5.4.1)
|
#include "ObjectiveFunctionTests.hpp"
Go to the source code of this file.
Classes | |
class | OFTestBadQM |
Defines | |
#define | CHECK_EQUAL_MATRICES(A, B) CPPUNIT_ASSERT_MATRICES_EQUAL( ( A ), ( B ), MAT_EPS( A ) ) |
Functions | |
static bool | init_pd (PatchData &pd) |
double | MAT_EPS (const Matrix3D &A) |
Variables | |
const size_t | HANDLE_VAL = 0xDEADBEEF |
Definition in file ObjectiveFunctionTests.cpp.
#define CHECK_EQUAL_MATRICES | ( | A, | |
B | |||
) | CPPUNIT_ASSERT_MATRICES_EQUAL( ( A ), ( B ), MAT_EPS( A ) ) |
Definition at line 514 of file ObjectiveFunctionTests.cpp.
Referenced by ObjectiveFunctionTests::compare_numerical_hessian().
get a patchdata to use for testing
Definition at line 43 of file ObjectiveFunctionTests.cpp.
References MBMesquite::PatchData::fill(), fixed, and MBMesquite::TRIANGLE.
Referenced by ObjectiveFunctionTests::patch().
Definition at line 509 of file ObjectiveFunctionTests.cpp.
References MBMesquite::Frobenius_2().
{ return std::max( 0.001 * sqrt( Frobenius_2( A ) ), 0.001 ); }
const size_t HANDLE_VAL = 0xDEADBEEF |
Definition at line 621 of file ObjectiveFunctionTests.cpp.
Referenced by OFTestBadQM::evaluate(), OFTestBadQM::evaluate_with_gradient(), OFTestBadQM::evaluate_with_Hessian(), OFTestBadQM::evaluate_with_indices(), and OFTestBadQM::get_evaluations().