8 #ifndef META_OCEAN_TEST_TESTMATH_NUMERIC_H
9 #define META_OCEAN_TEST_TESTMATH_NUMERIC_H
37 static bool test(
const double testDuration);
160 template <
typename T>
194 template <
typename T>
203 template <
typename T>
228 template <
typename T,
size_t tSize>
239 template <
typename T>
240 static OCEAN_FORCE_INLINE T dotProduct(
const T* vectorA,
const T* vectorB,
const size_t size);
249 template <
typename T,
typename TValue>
253 template <
typename T>
258 for (
size_t n = 0; n < size; ++n)
260 result += vectorA[n] * vectorB[n];
This class implements a test for the numeric class for the math library.
Definition: TestNumeric.h:29
static bool test(const double testDuration)
Tests numeric math functions.
static bool testCopySign()
Tests the copySign function.
static bool testRound()
Tests the round function.
static bool testIsEqualDynamic()
Tests the isEqual function with dynamic epsilon values.
static bool testAbs()
Tests the abs function.
static bool testPow()
Tests the pow function.
static bool testIsInf(const double testDuration)
Tests the isInf function.
static bool testSecureAbs()
Tests the secure abs function.
static bool verifyInsideValueRangeWithCast(const TValue value)
Verifies the insideValueRange() function based on a cast to a double value.
static OCEAN_FORCE_INLINE T dotProduct(const T *vectorA, const T *vectorB, const size_t size)
Standard implementation of a dot between two vectors.
Definition: TestNumeric.h:254
static bool testLog2(const double testDuration)
Tests the log2 function.
static bool testAngleIsBelowThreshold(const double testDuration)
Tests the below threshold function for angles.
static bool testInvertSign()
Tests the invertSign function.
static bool testDotProduct(const double testDuration)
Tests the dot product function.
static bool testGaussianDistribution2(const double testDuration)
Tests the Gaussian distribution 2D function.
static bool testGaussianDistribution3(const double testDuration)
Tests the Gaussian distribution 3D function.
static bool testAngleAdjustNull(const double testDuration)
Tests the angle adjust function with range around the zero angle.
static bool testCeil(const double testDuration)
Tests the ceil function.
static bool testAngleConversion(const double testDuration)
Tests the angle conversion functions.
static bool testAngleIsEqual(const double testDuration)
Tests the is equal function for angles.
static bool testEps()
Tests the eps() function.
static bool testFactorial()
Tests the invertSign function.
static bool testIsNan(const double testDuration)
Tests the isNan function.
static bool testDotProduct(const double testDuration)
Tests the dot product function with specific vector size.
static bool testIsInsideValueRange(const double testDuration)
Tests the isInsideValueRange() function.
static bool testSign(const double testDuration)
Tests the sign function.
static bool testWeakEps()
Tests the weakEps() function.
static bool testGaussianDistribution1(const double testDuration)
Tests the gaussian distribution 1D function.
static bool testFloor(const double testDuration)
Tests the floor function.
static bool testAngleAdjustPositive(const double testDuration)
Tests the angle adjust function with positive range.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15