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

Public Member Functions

 Impl (const bool cache_enabled=false)
 Impl (Impl const &)=delete
 Impl (Impl &&)=delete
 ~Impl ()
Impl & operator= (Impl const &)=delete
Impl & operator= (Impl &&)=delete
void radrfft (const int l, const int ngrid, const double cutoff, const double *const in, double *const out, const int p=0)
void direct (const int l, const int ngrid_in, const double *const grid_in, const double *const in, const int ngrid_out, const double *const grid_out, double *const out, const int p=0)
size_t heap_usage () const
void clear ()

Private Member Functions

void _rfft_prepare (const int n)
 buffer allocation and plan creation for in-place real-input FFT
void _rfft_clear ()
 clear the FFTW plan and buffer
void _tabulate (const int l, const int ngrid_in, const double *const grid_in, const int ngrid_out, const double *const grid_out)
 tabulate spherical Bessel function on the mesh grid
void _table_clear ()
 clear the tabulated jl

Private Attributes

double * f_ = nullptr
 buffer used for in-place real-input FFT
fftw_plan rfft_plan_ = nullptr
 FFTW plan.
int sz_planned_ = 0
 size of the planned FFT
const unsigned fftw_plan_flag_
 planner flag used to create rfft_plan_
const bool cache_enabled_ = false
 if true, jl values used in numerical integration will be cached
int l_ = -1
 order of the cached spherical Bessel function
std::vector< double > grid_in_
 cached input grid
std::vector< double > grid_out_
 cached output grid
std::vector< double > jl_
 cached spherical Bessel function values

Constructor & Destructor Documentation

◆ Impl() [1/3]

ModuleBase::SphericalBesselTransformer::Impl::Impl ( const bool cache_enabled = false)

◆ Impl() [2/3]

◆ Impl() [3/3]

◆ ~Impl()

Member Function Documentation

◆ _rfft_clear()

clear the FFTW plan and buffer

◆ _rfft_prepare()

buffer allocation and plan creation for in-place real-input FFT

◆ _table_clear()

clear the tabulated jl

◆ _tabulate()

void ModuleBase::SphericalBesselTransformer::Impl::_tabulate ( const int l,
const int ngrid_in,
const double *const grid_in,
const int ngrid_out,
const double *const grid_out )
private

tabulate spherical Bessel function on the mesh grid

◆ clear()

◆ direct()

void ModuleBase::SphericalBesselTransformer::Impl::direct ( const int l,
const int ngrid_in,
const double *const grid_in,
const double *const in,
const int ngrid_out,
const double *const grid_out,
double *const out,
const int p = 0 )

◆ heap_usage()

◆ operator=() [1/2]

Impl & ModuleBase::SphericalBesselTransformer::Impl::operator= ( Impl && )
delete

◆ operator=() [2/2]

Impl & ModuleBase::SphericalBesselTransformer::Impl::operator= ( Impl const & )
delete

◆ radrfft()

void ModuleBase::SphericalBesselTransformer::Impl::radrfft ( const int l,
const int ngrid,
const double cutoff,
const double *const in,
double *const out,
const int p = 0 )

Member Data Documentation

◆ cache_enabled_

if true, jl values used in numerical integration will be cached

◆ f_

buffer used for in-place real-input FFT

◆ fftw_plan_flag_

planner flag used to create rfft_plan_

◆ grid_in_

cached input grid

◆ grid_out_

cached output grid

◆ jl_

cached spherical Bessel function values

◆ l_

order of the cached spherical Bessel function

◆ rfft_plan_

FFTW plan.

◆ sz_planned_

size of the planned FFT


The documentation for this class was generated from the following file: