Ocean
Ocean Test Math Library

The Ocean Test Math Library provides several functions to test the performance and validation of the Ocean Math Library. More...

Collaboration diagram for Ocean Test Math Library:

Data Structures

class  Ocean::Test::TestMath::TestAnyCamera
 This class implements tests for the AnyCamera class. More...
 
class  Ocean::Test::TestMath::TestApproximation
 This class implements a test of the approximation functions. More...
 
class  Ocean::Test::TestMath::TestAutomaticDifferentiation
 This class implements a test for the automatic differentiation functionalities. More...
 
class  Ocean::Test::TestMath::TestBoundingBox
 This class implements a bounding box test. More...
 
class  Ocean::Test::TestMath::TestBoundingSphere
 This class implements a test for the bounding sphere. More...
 
class  Ocean::Test::TestMath::TestBox2
 This class implements a test for the Box2 class. More...
 
class  Ocean::Test::TestMath::TestBox3
 This class implements box tests. More...
 
class  Ocean::Test::TestMath::TestCone3
 This class implements a test for the 3D cone. More...
 
class  Ocean::Test::TestMath::TestCylinder3
 This class implements a test for the 3D cylinder. More...
 
class  Ocean::Test::TestMath::TestEquation
 This class implements a math equation test. More...
 
class  Ocean::Test::TestMath::TestEuler
 This class tests the implementation of the Euler class. More...
 
class  Ocean::Test::TestMath::TestExponentialMap
 This class implements a test for ExponentialMap. More...
 
class  Ocean::Test::TestMath::TestFiniteLine2
 This class implements a 2D finite line test. More...
 
class  Ocean::Test::TestMath::TestFiniteLine3
 This class implements a 3D finite line test. More...
 
class  Ocean::Test::TestMath::TestFourierTransformation
 This class implements test for the Fourier transformation class. More...
 
class  Ocean::Test::TestMath::TestFrustum
 This class implements frustum tests. More...
 
class  Ocean::Test::TestMath::TestHomogenousMatrix4
 This class implements a test for 4x4 homogeneous matrices. More...
 
class  Ocean::Test::TestMath::TestHSVAColor
 This class implements a HSVAColor test. More...
 
class  Ocean::Test::TestMath::TestInterpolation
 This class implements an interpolation test. More...
 
class  Ocean::Test::TestMath::TestLine2
 This class implements a 2D line test. More...
 
class  Ocean::Test::TestMath::TestLine3
 This class implements a 3D line test. More...
 
class  Ocean::Test::TestMath::TestLinearAlgebra
 This class implements linear algebra tests. More...
 
class  Ocean::Test::TestMath::TestLookup2
 This class implements a lookup object test. More...
 
class  Ocean::Test::TestMath::TestMathUtilities
 This class implements a test for functions in the Utilities class. More...
 
class  Ocean::Test::TestMath::TestMatrix
 This class implements a matrix test. More...
 
class  Ocean::Test::TestMath::TestNumeric
 This class implements a test for the numeric class for the math library. More...
 
class  Ocean::Test::TestMath::TestPinholeCamera
 This class implements camera tests. More...
 
class  Ocean::Test::TestMath::TestPlane3
 This class implements a 3D plane test. More...
 
class  Ocean::Test::TestMath::TestQuaternion
 This class implements a quaternion test. More...
 
class  Ocean::Test::TestMath::TestRandom
 This class tests the performance of the random functionalities. More...
 
class  Ocean::Test::TestMath::TestRateCalculator
 This class implements tests for the RateCalculator class. More...
 
class  Ocean::Test::TestMath::TestRGBAColor
 This class implements a RGBAColor test. More...
 
class  Ocean::Test::TestMath::TestRotation
 This class implements a rotation test. More...
 
class  Ocean::Test::TestMath::TestSampleMap
 This class implements tests for the SampleMap class. More...
 
class  Ocean::Test::TestMath::TestSparseMatrix
 This class implements a matrix test. More...
 
class  Ocean::Test::TestMath::TestSphere3
 This class implements a test for the 3D sphere. More...
 
class  Ocean::Test::TestMath::TestSquareMatrix2
 This class implements a test for 2x2 square matrices. More...
 
class  Ocean::Test::TestMath::TestSquareMatrix3
 This class implements a test for 3x3 square matrices. More...
 
class  Ocean::Test::TestMath::TestSquareMatrix4
 This class implements a test for 4x4 square matrices. More...
 
class  Ocean::Test::TestMath::TestStaticMatrix
 This class implements the test of the StaticMatrix class. More...
 
class  Ocean::Test::TestMath::TestTriangle2
 This class implements a test for the 2D triangle. More...
 
class  Ocean::Test::TestMath::TestVariance
 This class implements a test for the Variance class. More...
 
class  Ocean::Test::TestMath::TestVector2
 This class implements a test for the 2D vector. More...
 
class  Ocean::Test::TestMath::TestVector3
 This class implements a test for the 3D vector. More...
 
class  Ocean::Test::TestMath::TestVector4
 This class implements a test for the 4D vector. More...
 

Functions

OCEAN_TEST_MATH_EXPORT bool Ocean::Test::TestMath::testMath (const double testDuration, Worker &worker, const std::string &testFunctions=std::string())
 Tests the entire math library. More...
 
OCEAN_TEST_MATH_EXPORT void Ocean::Test::TestMath::testMathAsynchron (const double testDuration, const std::string &testFunctions=std::string())
 Tests the entire math library. More...
 

Detailed Description

The Ocean Test Math Library provides several functions to test the performance and validation of the Ocean Math Library.

The library is platform independent.

Function Documentation

◆ testMath()

OCEAN_TEST_MATH_EXPORT bool Ocean::Test::TestMath::testMath ( const double  testDuration,
Worker worker,
const std::string &  testFunctions = std::string() 
)

Tests the entire math library.

Parameters
testDurationNumber of seconds for each test, with range (0, infinity)
workerThe worker object to distribute some computation on as many CPU cores as defined in the worker object.
testFunctionsOptional name of the functions to be tested
Returns
True, if the entire test succeeded

◆ testMathAsynchron()

OCEAN_TEST_MATH_EXPORT void Ocean::Test::TestMath::testMathAsynchron ( const double  testDuration,
const std::string &  testFunctions = std::string() 
)

Tests the entire math library.

This function returns directly as the actual test is invoked in an own thread.
Use this function in intendet for non-console applications like e.g., mobile devices.

Parameters
testDurationNumber of seconds for each test, with range (0, infinity)
testFunctionsOptional name of the functions to be tested