Psi4
Public Member Functions | Protected Attributes | List of all members
psi::Quadrature Class Referenceabstract

#include <quad.h>

Inheritance diagram for psi::Quadrature:
psi::ChebyshevIIQuadrature

Public Member Functions

 Quadrature (int npoints)
 Constructor, allocates memory. More...
 
virtual ~Quadrature ()
 Destructor, frees memory. More...
 
virtual void print (std::string="outfile")=0
 Prints the Quadrature rule. More...
 
double getWeight ()
 Get the current quadrature weight. More...
 
double getPoint ()
 Get the current quadrature point. More...
 
void nextPoint ()
 Move to the next point. More...
 
void reset ()
 Reset the quadrature. More...
 
bool isDone ()
 See if the quadrature is complete. More...
 

Protected Attributes

int npoints_
 Number of points in this quadrature rule. More...
 
int index_
 Current index in the quadrature rule. More...
 
double * t_
 Set of points (arbitrary domain) More...
 
double * w_
 Set of weights (Cartesian points, no spherical r^2) More...
 

Constructor & Destructor Documentation

psi::Quadrature::Quadrature ( int  npoints)

Constructor, allocates memory.

psi::Quadrature::~Quadrature ( )
virtual

Destructor, frees memory.

Member Function Documentation

double psi::Quadrature::getPoint ( )
inline

Get the current quadrature point.

double psi::Quadrature::getWeight ( )
inline

Get the current quadrature weight.

bool psi::Quadrature::isDone ( )
inline

See if the quadrature is complete.

void psi::Quadrature::nextPoint ( )
inline

Move to the next point.

virtual void psi::Quadrature::print ( std::string  = "outfile")
pure virtual

Prints the Quadrature rule.

Implemented in psi::ChebyshevIIQuadrature.

void psi::Quadrature::reset ( )
inline

Reset the quadrature.

Member Data Documentation

int psi::Quadrature::index_
protected

Current index in the quadrature rule.

int psi::Quadrature::npoints_
protected

Number of points in this quadrature rule.

double* psi::Quadrature::t_
protected

Set of points (arbitrary domain)

double* psi::Quadrature::w_
protected

Set of weights (Cartesian points, no spherical r^2)


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