|
Graph Framework
|
Tests for arithmetic nodes. More...
#include <cassert>#include "../graph_framework/math.hpp"#include "../graph_framework/arithmetic.hpp"#include "../graph_framework/piecewise.hpp"#include "../graph_framework/trigonometry.hpp"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. | |
Tests for arithmetic nodes.
| int main | ( | int | argc, |
| const char * | argv[] | ||
| ) |
Main program of the test.
| [in] | argc | Number of commandline arguments. |
| [in] | argv | Array of commandline arguments. |
| void run_tests | ( | ) |
Run tests with a specified backend.
| T | Base type of the calculation. |
| void test_add | ( | ) |
Tests for addition nodes.
| T | Base type of the calculation. |
| void test_divide | ( | ) |
Tests for divide nodes.
| T | Base type of the calculation. |
| void test_fma | ( | ) |
Tests for fma nodes.
| T | Base type of the calculation. |
| void test_multiply | ( | ) |
Tests for multiply nodes.
| T | Base type of the calculation. |
| void test_subtract | ( | ) |
Tests for subtract nodes.
| T | Base type of the calculation. |