|
void | SetUp () |
| Allocates buffers.
|
|
void | TearDown () |
| Deallocates buffers.
|
|
|
static double | max_diff (int sz, const double *arr1, const double *arr2) |
| Gets the maximum absolute element-wise difference between two arrays.
|
|
|
const int | sz_max = 10000 |
| size of each buffer
|
|
double * | buffer = nullptr |
| buffer for all arrays below
|
|
double * | f = nullptr |
| input array
|
|
double * | g = nullptr |
| output array
|
|
double * | g_ref = nullptr |
| reference array
|
|
double * | grid_in = nullptr |
| input grid
|
|
double * | grid_out = nullptr |
| output grid
|
|
const double | tol = 1e-9 |
| tolerance for element-wise numerical error
|
|
Tested functions:
- radrfft
- Performs a spherical Bessel transform via fast Fourier transforms.
- direct
- Performs a spherical Bessel transform via quadrature using the Simpson's rule.
- set_fftw_plan_flag
- Sets the planner flag for FFTW plan creation.
◆ max_diff()
double SphericalBesselTransformTest::max_diff |
( |
int |
sz, |
|
|
const double * |
arr1, |
|
|
const double * |
arr2 |
|
) |
| |
|
staticprotected |
Gets the maximum absolute element-wise difference between two arrays.
◆ SetUp()
void SphericalBesselTransformTest::SetUp |
( |
| ) |
|
|
protected |
◆ TearDown()
void SphericalBesselTransformTest::TearDown |
( |
| ) |
|
|
protected |
◆ buffer
double* SphericalBesselTransformTest::buffer = nullptr |
|
protected |
buffer for all arrays below
double* SphericalBesselTransformTest::f = nullptr |
|
protected |
double* SphericalBesselTransformTest::g = nullptr |
|
protected |
◆ g_ref
double* SphericalBesselTransformTest::g_ref = nullptr |
|
protected |
◆ grid_in
double* SphericalBesselTransformTest::grid_in = nullptr |
|
protected |
◆ grid_out
double* SphericalBesselTransformTest::grid_out = nullptr |
|
protected |
◆ sz_max
const int SphericalBesselTransformTest::sz_max = 10000 |
|
protected |
◆ tol
const double SphericalBesselTransformTest::tol = 1e-9 |
|
protected |
tolerance for element-wise numerical error
The documentation for this class was generated from the following file: