SIRIUS 7.5.0
Electronic structure library and applications
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sirius::Radial_grid< T > Class Template Reference

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...
 
first () const
 First point of the grid. More...
 
last () const
 Last point of the grid. More...
 
operator[] (const int i) const
 Return \( x_{i} \). More...
 
x (const int i) const
 Return \( x_{i} \). More...
 
dx (const int i) const
 Return \( dx_{i} \). More...
 
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_gridoperator= (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...
 

Detailed Description

template<typename T>
class sirius::Radial_grid< T >

Base class for radial grids.

Definition at line 47 of file radial_grid.hpp.

Constructor & Destructor Documentation

◆ Radial_grid() [1/2]

template<typename T >
sirius::Radial_grid< T >::Radial_grid ( )
inline

Constructor of the empty object.

Definition at line 87 of file radial_grid.hpp.

◆ Radial_grid() [2/2]

template<typename T >
sirius::Radial_grid< T >::Radial_grid ( int  num_points__)
inline

Constructor.

Definition at line 92 of file radial_grid.hpp.

Member Function Documentation

◆ init()

template<typename T >
void sirius::Radial_grid< T >::init ( )
inlineprotected

Initialize the grid.

Definition at line 64 of file radial_grid.hpp.

◆ index_of()

template<typename T >
int sirius::Radial_grid< T >::index_of ( x__) const
inline

Definition at line 101 of file radial_grid.hpp.

◆ num_points()

template<typename T >
int sirius::Radial_grid< T >::num_points ( ) const
inline

Number of grid points.

Definition at line 121 of file radial_grid.hpp.

◆ first()

template<typename T >
T sirius::Radial_grid< T >::first ( ) const
inline

First point of the grid.

Definition at line 127 of file radial_grid.hpp.

◆ last()

template<typename T >
T sirius::Radial_grid< T >::last ( ) const
inline

Last point of the grid.

Definition at line 133 of file radial_grid.hpp.

◆ operator[]()

template<typename T >
T sirius::Radial_grid< T >::operator[] ( const int  i) const
inline

Return \( x_{i} \).

Definition at line 139 of file radial_grid.hpp.

◆ x() [1/2]

template<typename T >
T sirius::Radial_grid< T >::x ( const int  i) const
inline

Return \( x_{i} \).

Definition at line 146 of file radial_grid.hpp.

◆ dx() [1/2]

template<typename T >
T sirius::Radial_grid< T >::dx ( const int  i) const
inline

Return \( dx_{i} \).

Definition at line 152 of file radial_grid.hpp.

◆ x_inv()

template<typename T >
T sirius::Radial_grid< T >::x_inv ( const int  i) const
inline

Return \( x_{i}^{-1} \).

Definition at line 158 of file radial_grid.hpp.

◆ name()

template<typename T >
std::string const & sirius::Radial_grid< T >::name ( ) const
inline

Definition at line 163 of file radial_grid.hpp.

◆ copy_to_device()

template<typename T >
void sirius::Radial_grid< T >::copy_to_device ( )
inline

Definition at line 168 of file radial_grid.hpp.

◆ x() [2/2]

template<typename T >
sddk::mdarray< T, 1 > const & sirius::Radial_grid< T >::x ( ) const
inline

Definition at line 174 of file radial_grid.hpp.

◆ dx() [2/2]

template<typename T >
sddk::mdarray< T, 1 > const & sirius::Radial_grid< T >::dx ( ) const
inline

Definition at line 179 of file radial_grid.hpp.

◆ segment()

template<typename T >
Radial_grid< T > sirius::Radial_grid< T >::segment ( int  num_points__) const
inline

Definition at line 184 of file radial_grid.hpp.

◆ values()

template<typename T >
std::vector< real_type< T > > sirius::Radial_grid< T >::values ( ) const
inline

Definition at line 200 of file radial_grid.hpp.

◆ hash()

template<typename T >
uint64_t sirius::Radial_grid< T >::hash ( ) const
inline

Definition at line 209 of file radial_grid.hpp.

Member Data Documentation

◆ x_

template<typename T >
sddk::mdarray<T, 1> sirius::Radial_grid< T >::x_
protected

Radial grid points.

Definition at line 51 of file radial_grid.hpp.

◆ x_inv_

template<typename T >
sddk::mdarray<T, 1> sirius::Radial_grid< T >::x_inv_
protected

Inverse values of radial grid points.

Definition at line 54 of file radial_grid.hpp.

◆ dx_

template<typename T >
sddk::mdarray<T, 1> sirius::Radial_grid< T >::dx_
protected

Radial grid points difference.

\( dx_{i} = x_{i+1} - x_{i} \)

Definition at line 58 of file radial_grid.hpp.

◆ name_

template<typename T >
std::string sirius::Radial_grid< T >::name_
protected

Name of the grid type.

Definition at line 61 of file radial_grid.hpp.


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