MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Public Member Functions | |
std::string | get_name () const |
bool | evaluate (const MsqMatrix< 2, 2 > &T, double &result, MsqError &) |
Evaluate \(\mu(T)\). | |
bool | evaluate (const MsqMatrix< 3, 3 > &T, double &result, MsqError &) |
Evaluate \(\mu(T)\). | |
bool | evaluate_with_grad (const MsqMatrix< 2, 2 > &T, double &result, MsqMatrix< 2, 2 > &wrt_T, MsqError &) |
Gradient of \(\mu(T)\) with respect to components of T. | |
bool | evaluate_with_grad (const MsqMatrix< 3, 3 > &T, double &result, MsqMatrix< 3, 3 > &wrt_T, MsqError &) |
Gradient of \(\mu(T)\) with respect to components of T. |
Definition at line 109 of file TMetricTest.cpp.
bool HessTestMetricRel::evaluate | ( | const MsqMatrix< 2, 2 > & | T, |
double & | result, | ||
MsqError & | err | ||
) | [inline, virtual] |
Evaluate \(\mu(T)\).
T | 2x2 relative measure matrix (typically A W^-1) |
result | Output: value of function |
Reimplemented from MBMesquite::TMetric.
Definition at line 117 of file TMetricTest.cpp.
References MBMesquite::sqr_Frobenius(), and MBMesquite::transpose().
{ result = sqr_Frobenius( 2 * T - transpose( T ) ); return true; }
bool HessTestMetricRel::evaluate | ( | const MsqMatrix< 3, 3 > & | T, |
double & | result, | ||
MsqError & | err | ||
) | [inline, virtual] |
Evaluate \(\mu(T)\).
T | 3x3 relative measure matrix (typically A W^-1) |
result | Output: value of function |
Reimplemented from MBMesquite::TMetric.
Definition at line 122 of file TMetricTest.cpp.
References MBMesquite::sqr_Frobenius(), and MBMesquite::transpose().
{ result = sqr_Frobenius( 2 * T - transpose( T ) ); return true; }
bool HessTestMetricRel::evaluate_with_grad | ( | const MsqMatrix< 2, 2 > & | T, |
double & | result, | ||
MsqMatrix< 2, 2 > & | deriv_wrt_T, | ||
MsqError & | err | ||
) | [inline, virtual] |
Gradient of \(\mu(T)\) with respect to components of T.
T | 2x2 relative measure matrix (typically A W^-1) |
result | Output: value of function |
deriv_wrt_T | Output: partial deriviatve of \(\mu\) wrt each term of T, evaluated at passed T. \[\left[\begin{array}{cc} \frac{\partial\mu}{\partial T_{0,0}} & \frac{\partial\mu}{\partial T_{0,1}} \\ \frac{\partial\mu}{\partial T_{1,0}} & \frac{\partial\mu}{\partial T_{1,1}} \\ \end{array}\right]\] |
Reimplemented from MBMesquite::TMetric.
Definition at line 127 of file TMetricTest.cpp.
References MBMesquite::sqr_Frobenius(), and MBMesquite::transpose().
Referenced by TMetricTest< Metric, DIM >::test_numerical_hessian_2D(), and TMetricTest< Metric, DIM >::test_numerical_hessian_3D().
{ result = sqr_Frobenius( 2 * T - transpose( T ) ); wrt_T = 10 * T - 8 * transpose( T ); return true; }
bool HessTestMetricRel::evaluate_with_grad | ( | const MsqMatrix< 3, 3 > & | T, |
double & | result, | ||
MsqMatrix< 3, 3 > & | deriv_wrt_T, | ||
MsqError & | err | ||
) | [inline, virtual] |
Gradient of \(\mu(T)\) with respect to components of T.
T | 3x3 relative measure matrix (typically A W^-1) |
result | Output: value of function |
deriv_wrt_T | Output: partial deriviatve of \(\mu\) wrt each term of T, evaluated at passed T. \[\left[\begin{array}{ccc} \frac{\partial\mu}{\partial T_{0,0}} & \frac{\partial\mu}{\partial T_{0,1}} & \frac{\partial\mu}{\partial T_{0,2}} \\ \frac{\partial\mu}{\partial T_{1,0}} & \frac{\partial\mu}{\partial T_{1,1}} & \frac{\partial\mu}{\partial T_{1,2}} \\ \frac{\partial\mu}{\partial T_{2,0}} & \frac{\partial\mu}{\partial T_{2,1}} & \frac{\partial\mu}{\partial T_{2,2}} \end{array}\right]\] |
Reimplemented from MBMesquite::TMetric.
Definition at line 133 of file TMetricTest.cpp.
References MBMesquite::sqr_Frobenius(), and MBMesquite::transpose().
{ result = sqr_Frobenius( 2 * T - transpose( T ) ); wrt_T = 10 * T - 8 * transpose( T ); return true; }
std::string HessTestMetricRel::get_name | ( | ) | const [inline, virtual] |
Implements MBMesquite::TMetric.
Definition at line 112 of file TMetricTest.cpp.
{ return "HessTest"; }