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

Tests for arithmetic nodes. More...

Functions

template<jit::float_scalar T>
void test_add ()
 Tests for addition nodes.
 
template<jit::float_scalar T>
void test_subtract ()
 Tests for subtract nodes.
 
template<jit::float_scalar T>
void test_multiply ()
 Tests for multiply nodes.
 
template<jit::float_scalar T>
void test_divide ()
 Tests for divide nodes.
 
template<jit::float_scalar T>
void test_fma ()
 Tests for fma nodes.
 
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 arithmetic 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_add()

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

Tests for addition nodes.

Template Parameters
TBase type of the calculation.

◆ test_divide()

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

Tests for divide nodes.

Template Parameters
TBase type of the calculation.

◆ test_fma()

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

Tests for fma nodes.

Template Parameters
TBase type of the calculation.

◆ test_multiply()

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

Tests for multiply nodes.

Template Parameters
TBase type of the calculation.

◆ test_subtract()

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

Tests for subtract nodes.

Template Parameters
TBase type of the calculation.