MADNESS 0.10.1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
madness::randomgrid< NDIM > Class Template Reference

grid with random points around the origin, with a Gaussian distribution More...

#include <lowrankfunction.h>

Inheritance diagram for madness::randomgrid< NDIM >:
Inheritance graph
[legend]
Collaboration diagram for madness::randomgrid< NDIM >:
Collaboration graph
[legend]

Public Member Functions

 randomgrid (const double volume_element, const double radius, const Vector< double, NDIM > origin=Vector< double, NDIM >(0.0))
 
std::vector< Vector< double, NDIM > > get_grid () const
 
Vector< double, NDIMget_origin () const
 
- Public Member Functions inherited from madness::gridbase
virtual ~gridbase ()=default
 
double get_radius () const
 
double get_volume_element () const
 
template<std::size_t NDIM>
void visualize (const std::string filename, const std::vector< Vector< double, NDIM > > &grid) const
 

Private Member Functions

double volume () const
 

Static Private Member Functions

static Vector< double, NDIMgaussian_random_distribution (const Vector< double, NDIM > origin, double variance)
 

Private Attributes

Vector< double, NDIMorigin
 

Additional Inherited Members

- Protected Attributes inherited from madness::gridbase
bool do_print =false
 
double radius =3
 
double volume_element =0.1
 

Detailed Description

template<std::size_t NDIM>
class madness::randomgrid< NDIM >

grid with random points around the origin, with a Gaussian distribution

Constructor & Destructor Documentation

◆ randomgrid()

template<std::size_t NDIM>
madness::randomgrid< NDIM >::randomgrid ( const double  volume_element,
const double  radius,
const Vector< double, NDIM origin = Vector<double,NDIM>(0.0) 
)
inline

Member Function Documentation

◆ gaussian_random_distribution()

template<std::size_t NDIM>
static Vector< double, NDIM > madness::randomgrid< NDIM >::gaussian_random_distribution ( const Vector< double, NDIM origin,
double  variance 
)
inlinestaticprivate

◆ get_grid()

template<std::size_t NDIM>
std::vector< Vector< double, NDIM > > madness::randomgrid< NDIM >::get_grid ( ) const
inline

◆ get_origin()

template<std::size_t NDIM>
Vector< double, NDIM > madness::randomgrid< NDIM >::get_origin ( ) const
inline

◆ volume()

template<std::size_t NDIM>
double madness::randomgrid< NDIM >::volume ( ) const
inlineprivate

Member Data Documentation

◆ origin

template<std::size_t NDIM>
Vector<double,NDIM> madness::randomgrid< NDIM >::origin
private

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