MOAB: Mesh Oriented datABase  (version 5.2.1)
NumericalMetric< Base > Class Template Reference

#include <TMPQualityMetricTest.hpp>

+ Inheritance diagram for NumericalMetric< Base >:
+ Collaboration diagram for NumericalMetric< Base >:

Public Member Functions

 NumericalMetric (Base *real_metric)
 ~NumericalMetric ()
std::string get_name () const
bool evaluate (const MsqMatrix< 2, 2 > &A, const MsqMatrix< 2, 2 > &W, double &result, MsqError &err)
bool evaluate (const MsqMatrix< 3, 3 > &A, const MsqMatrix< 3, 3 > &W, double &result, MsqError &err)
bool evaluate (const MsqMatrix< 2, 2 > &T, double &result, MsqError &err)
bool evaluate (const MsqMatrix< 3, 3 > &T, double &result, MsqError &err)

Private Attributes

Base * mMetric

Detailed Description

template<class Base>
class NumericalMetric< Base >

wrapper class to force numeric approximation of derivatives

Definition at line 119 of file TMPQualityMetricTest.hpp.


Constructor & Destructor Documentation

template<class Base>
NumericalMetric< Base >::NumericalMetric ( Base *  real_metric) [inline]

Definition at line 122 of file TMPQualityMetricTest.hpp.

: mMetric( real_metric ) {}
template<class Base>
NumericalMetric< Base >::~NumericalMetric ( ) [inline]

Definition at line 124 of file TMPQualityMetricTest.hpp.

{}

Member Function Documentation

template<class Base>
bool NumericalMetric< Base >::evaluate ( const MsqMatrix< 2, 2 > &  A,
const MsqMatrix< 2, 2 > &  W,
double &  result,
MsqError err 
) [inline]

Definition at line 131 of file TMPQualityMetricTest.hpp.

    {
        return mMetric->evaluate( A, W, result, err );
    }
template<class Base>
bool NumericalMetric< Base >::evaluate ( const MsqMatrix< 3, 3 > &  A,
const MsqMatrix< 3, 3 > &  W,
double &  result,
MsqError err 
) [inline]

Definition at line 136 of file TMPQualityMetricTest.hpp.

    {
        return mMetric->evaluate( A, W, result, err );
    }
template<class Base>
bool NumericalMetric< Base >::evaluate ( const MsqMatrix< 2, 2 > &  T,
double &  result,
MsqError err 
) [inline]

Definition at line 141 of file TMPQualityMetricTest.hpp.

    {
        return mMetric->evaluate( T, result, err );
    }
template<class Base>
bool NumericalMetric< Base >::evaluate ( const MsqMatrix< 3, 3 > &  T,
double &  result,
MsqError err 
) [inline]

Definition at line 146 of file TMPQualityMetricTest.hpp.

    {
        return mMetric->evaluate( T, result, err );
    }
template<class Base>
std::string NumericalMetric< Base >::get_name ( ) const [inline]

Definition at line 126 of file TMPQualityMetricTest.hpp.

    {
        return "Numerical " + mMetric->get_name();
    }

Member Data Documentation

template<class Base>
Base* NumericalMetric< Base >::mMetric [private]

Definition at line 152 of file TMPQualityMetricTest.hpp.

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines