MOAB: Mesh Oriented datABase  (version 5.2.1)
PMeanPMetricTest.cpp File Reference
#include "ElementPMeanP.hpp"
#include "VertexPMeanP.hpp"
#include "cppunit/extensions/HelperMacros.h"
#include "PatchDataInstances.hpp"
#include "UnitUtil.hpp"
#include "ElemSampleQM.hpp"
+ Include dependency graph for PMeanPMetricTest.cpp:

Go to the source code of this file.

Classes

class  PMeanPMetricTest
class  FauxMetric< B >

Functions

 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (PMeanPMetricTest,"PMeanPMetricTest")
 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION (PMeanPMetricTest,"Unit")
template<typename T >
size_t index_of (const std::vector< T > &v, T a)

Function Documentation

template<typename T >
size_t index_of ( const std::vector< T > &  v,
T  a 
)

Definition at line 325 of file PMeanPMetricTest.cpp.

Referenced by PMeanPMetricTest::test_gradient(), and PMeanPMetricTest::test_hessian().

{
    return std::find( v.begin(), v.end(), a ) - v.begin();
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines