Graph Framework
Loading...
Searching...
No Matches
math_test.cpp File Reference

Tests for math nodes. More...

Functions

template<jit::float_scalar T>
void test_sqrt ()
 Tests for sqrt nodes.
 
template<jit::float_scalar T>
void test_exp ()
 Tests for exp nodes.
 
template<jit::float_scalar T>
void test_pow ()
 Tests for pow nodes.
 
template<jit::float_scalar T>
void test_log ()
 Tests for log nodes.
 
template<jit::complex_scalar T>
void test_erfi ()
 Tests for log nodes.
 
template<jit::float_scalar T>
void test_variable_like ()
 Tests function for variable like expressions.
 
template<jit::float_scalar T>
void run_tests ()
 Run tests with a specified backend.
 
int main (int argc, const char *argv[])
 Main program of the test.
 

Detailed Description

Tests for math nodes.

Function Documentation

◆ main()

int main ( int  argc,
const char *  argv[] 
)

Main program of the test.

Parameters
[in]argcNumber of commandline arguments.
[in]argvArray of commandline arguments.

◆ run_tests()

template<jit::float_scalar T>
void run_tests ( )

Run tests with a specified backend.

Template Parameters
TBase type of the calculation.

◆ test_erfi()

template<jit::complex_scalar T>
void test_erfi ( )

Tests for log nodes.

Template Parameters
TBase type of the calculation.

◆ test_exp()

template<jit::float_scalar T>
void test_exp ( )

Tests for exp nodes.

Template Parameters
TBase type of the calculation.

◆ test_log()

template<jit::float_scalar T>
void test_log ( )

Tests for log nodes.

Template Parameters
TBase type of the calculation.

◆ test_pow()

template<jit::float_scalar T>
void test_pow ( )

Tests for pow nodes.

Template Parameters
TBase type of the calculation.

◆ test_sqrt()

template<jit::float_scalar T>
void test_sqrt ( )

Tests for sqrt nodes.

Template Parameters
TBase type of the calculation.

◆ test_variable_like()

template<jit::float_scalar T>
void test_variable_like ( )

Tests function for variable like expressions.

Template Parameters
TBase type of the calculation.