ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
SphericalBesselTransformTest Class Reference
Inheritance diagram for SphericalBesselTransformTest:
Collaboration diagram for SphericalBesselTransformTest:

Protected Member Functions

void SetUp ()
 Allocates buffers.
void TearDown ()
 Deallocates buffers.

Static Protected Member Functions

static double max_diff (int sz, const double *arr1, const double *arr2)
 Gets the maximum absolute element-wise difference between two arrays.

Protected Attributes

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

Detailed Description

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.

Member Function Documentation

◆ 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

Allocates buffers.

◆ TearDown()

void SphericalBesselTransformTest::TearDown ( )
protected

Deallocates buffers.

Member Data Documentation

◆ buffer

double* SphericalBesselTransformTest::buffer = nullptr
protected

buffer for all arrays below

◆ f

double* SphericalBesselTransformTest::f = nullptr
protected

input array

◆ g

double* SphericalBesselTransformTest::g = nullptr
protected

output array

◆ g_ref

double* SphericalBesselTransformTest::g_ref = nullptr
protected

reference array

◆ grid_in

double* SphericalBesselTransformTest::grid_in = nullptr
protected

input grid

◆ grid_out

double* SphericalBesselTransformTest::grid_out = nullptr
protected

output grid

◆ sz_max

const int SphericalBesselTransformTest::sz_max = 10000
protected

size of each buffer

◆ 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: