25 #ifndef WSYMMETRICSPHERICALHARMONIC_TEST_H
26 #define WSYMMETRICSPHERICALHARMONIC_TEST_H
53 #include <cxxtest/TestSuite.h>
55 #include "../WMatrix.h"
56 #include "../WValue.h"
58 #include "../WGeometryFunctions.h"
59 #include "../WSymmetricSphericalHarmonic.h"
60 #include "../WTensorSym.h"
61 #include "../WTensorFunctions.h"
63 #include "WMatrixTraits.h"
82 reference( 0, 0 ) = 2.0 * piDouble;
83 for(
size_t i = 1; i <= 5; i++ )
85 reference( i, i ) = -2.0 * piDouble * 1.0 / 2.0;
87 for(
size_t i = 6; i <= 14; i++ )
89 reference( i, i ) = 2.0 * piDouble * 3.0 / 8.0;
92 for(
size_t i = 0; i < 15; ++i )
94 for(
size_t j = 0; j < 15; ++j )
96 TS_ASSERT_DELTA( result( i, j ), reference( i, j ), 1e-9 );
112 reference( 0, 0 ) = 0.0;
113 for(
size_t i = 1; i <= 5; i++ )
115 reference( i, i ) = 36.0;
117 for(
size_t i = 6; i <= 14; i++ )
119 reference( i, i ) = 400.0;
122 for(
size_t i = 0; i < 15; ++i )
124 for(
size_t j = 0; j < 15; ++j )
126 TS_ASSERT_DELTA( result( i, j ), reference( i, j ), 1e-9 );
210 #endif // WSYMMETRICSPHERICALHARMONIC_TEST_H
void testCalcFRTMatrix(void)
testCalcFRTMatrix
void setZero()
Resets the matrix components to zero.
Class for symmetric spherical harmonics The index scheme of the coefficients/basis values is like in ...
Testsuite for WSymmetricSphericalHarmonic.
void testCalcSmoothingMatrix(void)
testCalcSmoothingMatrix