OpenWalnut  1.5.0dev
Public Member Functions | Private Member Functions | List of all members
WTensorSymTest Class Reference

Test class for the WTensorSym template. More...

#include <WTensorSym_test.h>

+ Inheritance diagram for WTensorSymTest:
+ Collaboration diagram for WTensorSymTest:

Public Member Functions

void testAccessOperator1 ()
 Test access operator (). More...
 
void testAccessOperator2 ()
 Test access operator []. More...
 
void testStandardConstructor ()
 Test the standard constructor. More...
 
void testCopyConstructor ()
 Test copy constructor. More...
 
void testCopyOperator ()
 Test copy operator. More...
 
void testCastToVariousTypes ()
 Test casts to Data_T, WValue or WMatrix, depending on the order of the Tensor. More...
 
void testEvaluateSphericalFunction ()
 The optimizations for symmetric tensors should not corrupt the result, so we compare the optimized evaluation function to a simple implementaion. More...
 

Private Member Functions

double calcTens (WTensorSym< 4, 3, double > const &t, WVector3d const &v)
 A helper function that implements the simple approach to tensor evaluation. More...
 

Detailed Description

Test class for the WTensorSym template.

Definition at line 38 of file WTensorSym_test.h.

Member Function Documentation

◆ calcTens()

double WTensorSymTest::calcTens ( WTensorSym< 4, 3, double > const &  t,
WVector3d const &  v 
)
inlineprivate

A helper function that implements the simple approach to tensor evaluation.

Parameters
tThe tensor.
vThe gradient.
Returns
The value of the spherical function in the direction of the gradient.

Definition at line 248 of file WTensorSym_test.h.

Referenced by testEvaluateSphericalFunction().

+ Here is the caller graph for this function:

◆ testAccessOperator1()

void WTensorSymTest::testAccessOperator1 ( )
inline

Test access operator ().

Definition at line 44 of file WTensorSym_test.h.

◆ testAccessOperator2()

void WTensorSymTest::testAccessOperator2 ( )
inline

Test access operator [].

Definition at line 77 of file WTensorSym_test.h.

◆ testCastToVariousTypes()

void WTensorSymTest::testCastToVariousTypes ( )
inline

Test casts to Data_T, WValue or WMatrix, depending on the order of the Tensor.

Definition at line 172 of file WTensorSym_test.h.

◆ testCopyConstructor()

void WTensorSymTest::testCopyConstructor ( )
inline

Test copy constructor.

Definition at line 140 of file WTensorSym_test.h.

◆ testCopyOperator()

void WTensorSymTest::testCopyOperator ( )
inline

Test copy operator.

Definition at line 154 of file WTensorSym_test.h.

◆ testEvaluateSphericalFunction()

void WTensorSymTest::testEvaluateSphericalFunction ( )
inline

The optimizations for symmetric tensors should not corrupt the result, so we compare the optimized evaluation function to a simple implementaion.

Definition at line 204 of file WTensorSym_test.h.

References calcTens(), and WTensorSym< order, dim, Data_T >::evaluateSphericalFunction().

+ Here is the call graph for this function:

◆ testStandardConstructor()

void WTensorSymTest::testStandardConstructor ( )
inline

Test the standard constructor.

Definition at line 100 of file WTensorSym_test.h.


The documentation for this class was generated from the following file: