SIRIUS 7.5.0
Electronic structure library and applications
|
Base class for radial grids. More...
#include <radial_grid.hpp>
Inherited by sirius::Radial_grid_exp< T >, sirius::Radial_grid_ext< T >, sirius::Radial_grid_lin_exp< T >, and sirius::Radial_grid_pow< T >.
Public Member Functions | |
Radial_grid () | |
Constructor of the empty object. More... | |
Radial_grid (int num_points__) | |
Constructor. More... | |
Radial_grid (Radial_grid< T > &&src__)=default | |
Radial_grid< T > & | operator= (Radial_grid< T > &&src__)=default |
int | index_of (T x__) const |
int | num_points () const |
Number of grid points. More... | |
T | first () const |
First point of the grid. More... | |
T | last () const |
Last point of the grid. More... | |
T | operator[] (const int i) const |
Return \( x_{i} \). More... | |
T | x (const int i) const |
Return \( x_{i} \). More... | |
T | dx (const int i) const |
Return \( dx_{i} \). More... | |
T | x_inv (const int i) const |
Return \( x_{i}^{-1} \). More... | |
std::string const & | name () const |
void | copy_to_device () |
sddk::mdarray< T, 1 > const & | x () const |
sddk::mdarray< T, 1 > const & | dx () const |
Radial_grid< T > | segment (int num_points__) const |
std::vector< real_type< T > > | values () const |
uint64_t | hash () const |
Protected Member Functions | |
void | init () |
Initialize the grid. More... | |
Radial_grid (Radial_grid< T > const &src__)=delete | |
Radial_grid & | operator= (Radial_grid< T > const &src__)=delete |
Protected Attributes | |
sddk::mdarray< T, 1 > | x_ |
Radial grid points. More... | |
sddk::mdarray< T, 1 > | x_inv_ |
Inverse values of radial grid points. More... | |
sddk::mdarray< T, 1 > | dx_ |
Radial grid points difference. More... | |
std::string | name_ |
Name of the grid type. More... | |
Base class for radial grids.
Definition at line 47 of file radial_grid.hpp.
|
inline |
Constructor of the empty object.
Definition at line 87 of file radial_grid.hpp.
|
inline |
Constructor.
Definition at line 92 of file radial_grid.hpp.
|
inlineprotected |
Initialize the grid.
Definition at line 64 of file radial_grid.hpp.
|
inline |
Definition at line 101 of file radial_grid.hpp.
|
inline |
Number of grid points.
Definition at line 121 of file radial_grid.hpp.
|
inline |
First point of the grid.
Definition at line 127 of file radial_grid.hpp.
|
inline |
Last point of the grid.
Definition at line 133 of file radial_grid.hpp.
|
inline |
Return \( x_{i} \).
Definition at line 139 of file radial_grid.hpp.
|
inline |
Return \( x_{i} \).
Definition at line 146 of file radial_grid.hpp.
|
inline |
Return \( dx_{i} \).
Definition at line 152 of file radial_grid.hpp.
|
inline |
Return \( x_{i}^{-1} \).
Definition at line 158 of file radial_grid.hpp.
|
inline |
Definition at line 163 of file radial_grid.hpp.
|
inline |
Definition at line 168 of file radial_grid.hpp.
|
inline |
Definition at line 174 of file radial_grid.hpp.
|
inline |
Definition at line 179 of file radial_grid.hpp.
|
inline |
Definition at line 184 of file radial_grid.hpp.
|
inline |
Definition at line 200 of file radial_grid.hpp.
|
inline |
Definition at line 209 of file radial_grid.hpp.
|
protected |
Radial grid points.
Definition at line 51 of file radial_grid.hpp.
|
protected |
Inverse values of radial grid points.
Definition at line 54 of file radial_grid.hpp.
|
protected |
Radial grid points difference.
\( dx_{i} = x_{i+1} - x_{i} \)
Definition at line 58 of file radial_grid.hpp.
|
protected |
Name of the grid type.
Definition at line 61 of file radial_grid.hpp.