ROL
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
ROL::Quadrature< Real > Class Template Reference

#include <ROL_Quadrature.hpp>

Public Member Functions

virtual ~Quadrature ()
 
 Quadrature (int dimension=1)
 
 Quadrature (int degree, EROLBurkardt rule, bool isNormalized)
 
 Quadrature (EROLBurkardt rule, int numPoints, bool isNormalized)
 
 Quadrature (std::vector< Real > &points, std::vector< Real > &weights)
 
 Quadrature (int dimension, std::vector< int > numPoints1D, std::vector< EROLBurkardt > rule1D, bool isNormalized)
 
 Quadrature (int dimension, std::vector< int > numPoints1D, std::vector< EROLBurkardt > rule1D, std::vector< EROLGrowth > growth1D, bool isNormalized)
 
 Quadrature (int dimension, int maxNumPoints, std::vector< EROLBurkardt > rule1D, std::vector< EROLGrowth > growth1D, bool isNormalized)
 
 Quadrature (int dimension, int maxNumPoints, std::vector< EROLBurkardt > rule1D, std::vector< EROLGrowth > growth1D, bool isNormalized, bool useSandia)
 
 Quadrature (const char *SGinfo, const char *SGdata, bool isNormalized)
 
virtual void getCubature (std::vector< std::vector< Real > > &cubPoints, std::vector< Real > &cubWeights) const
 
virtual int getNumPoints () const
 
virtual void getAccuracy (std::vector< int > &accuracy) const
 
virtual int getDimension () const
 
virtual std::map< std::vector
< Real >, int >::iterator 
begin ()
 
virtual std::map< std::vector
< Real >, int >::iterator 
end ()
 
virtual void insert (typename std::map< std::vector< Real >, int >::iterator it, std::vector< Real > point, Real weight)
 
virtual std::vector< Real > getNode (typename std::map< std::vector< Real >, int >::iterator it)
 
virtual Real getWeight (int node)
 
virtual Real getWeight (std::vector< Real > point)
 
virtual void update (Real alpha, Quadrature< Real > &rule)
 
virtual void normalize ()
 

Protected Member Functions

void addPointAndWeight (std::vector< Real > point, Real weight, int loc)
 

Private Attributes

std::map< std::vector< Real >
, int > 
points_
 
std::vector< Real > weights_
 
std::vector< int > accuracy_
 
int dimension_
 

Detailed Description

template<class Real>
class ROL::Quadrature< Real >

Definition at line 72 of file ROL_Quadrature.hpp.

Constructor & Destructor Documentation

template<class Real>
virtual ROL::Quadrature< Real >::~Quadrature ( )
inlinevirtual

Definition at line 83 of file ROL_Quadrature.hpp.

template<class Real >
ROL::Quadrature< Real >::Quadrature ( int  dimension = 1)
template<class Real >
ROL::Quadrature< Real >::Quadrature ( int  degree,
EROLBurkardt  rule,
bool  isNormalized 
)
template<class Real >
ROL::Quadrature< Real >::Quadrature ( EROLBurkardt  rule,
int  numPoints,
bool  isNormalized 
)
template<class Real >
ROL::Quadrature< Real >::Quadrature ( std::vector< Real > &  points,
std::vector< Real > &  weights 
)
template<class Real >
ROL::Quadrature< Real >::Quadrature ( int  dimension,
std::vector< int >  numPoints1D,
std::vector< EROLBurkardt rule1D,
bool  isNormalized 
)
template<class Real >
ROL::Quadrature< Real >::Quadrature ( int  dimension,
std::vector< int >  numPoints1D,
std::vector< EROLBurkardt rule1D,
std::vector< EROLGrowth growth1D,
bool  isNormalized 
)
template<class Real >
ROL::Quadrature< Real >::Quadrature ( int  dimension,
int  maxNumPoints,
std::vector< EROLBurkardt rule1D,
std::vector< EROLGrowth growth1D,
bool  isNormalized 
)
template<class Real >
ROL::Quadrature< Real >::Quadrature ( int  dimension,
int  maxNumPoints,
std::vector< EROLBurkardt rule1D,
std::vector< EROLGrowth growth1D,
bool  isNormalized,
bool  useSandia 
)

Definition at line 164 of file ROL_QuadratureTPConstructors.hpp.

References ROL::Quadrature< Real >::addPointAndWeight(), ROL::BURK_CLENSHAWCURTIS, ROL::BURK_FEJER2, ROL::BURK_GENZKEISTER, ROL::BURK_HERMITE, ROL::BURK_LAGUERRE, ROL::BURK_LEGENDRE, ROL::BURK_PATTERSON, ROL::SandiaRules2::clenshaw_curtis_points(), ROL::SandiaRules2::clenshaw_curtis_weights(), ROL::SandiaRules2::fejer2_points(), ROL::SandiaRules2::fejer2_weights(), ROL::GROWTH_DEFAULT, ROL::GROWTH_FULLEXP, ROL::GROWTH_MODEXP, ROL::GROWTH_MODLIN, ROL::GROWTH_SLOWEXP, ROL::GROWTH_SLOWLIN, ROL::GROWTH_SLOWLINODD, ROL::SandiaRules2::hermite_genz_keister_points(), ROL::SandiaRules2::hermite_genz_keister_weights(), ROL::SandiaRules2::hermite_points(), ROL::SandiaRules2::hermite_weights(), ROL::SandiaRules::i4vec_sum(), ROL::SandiaRules2::laguerre_points(), ROL::SandiaRules2::laguerre_weights(), ROL::SandiaRules2::legendre_points(), ROL::SandiaRules2::legendre_weights(), ROL::SandiaRules::level_to_order_exp_cc(), ROL::SandiaRules::level_to_order_exp_f2(), ROL::SandiaRules::level_to_order_exp_gauss(), ROL::SandiaRules::level_to_order_exp_gp(), ROL::SandiaRules::level_to_order_exp_hgk(), ROL::Quadrature< Real >::normalize(), ROL::SandiaRules2::patterson_points(), ROL::SandiaRules2::patterson_weights(), ROL::SandiaRules::r8_epsilon(), ROL::sgmga::sgmga_index(), ROL::SandiaSGMGA::sgmga_index(), ROL::sgmga::sgmga_point(), ROL::SandiaSGMGA::sgmga_point(), ROL::sgmga::sgmga_size(), ROL::SandiaSGMGA::sgmga_size(), ROL::sgmga::sgmga_size_total(), ROL::SandiaSGMGA::sgmga_size_total(), ROL::sgmga::sgmga_unique_index(), ROL::SandiaSGMGA::sgmga_unique_index(), ROL::sgmga::sgmga_weight(), and ROL::SandiaSGMGA::sgmga_weight().

template<class Real >
ROL::Quadrature< Real >::Quadrature ( const char *  SGinfo,
const char *  SGdata,
bool  isNormalized 
)

Definition at line 362 of file ROL_QuadratureTPConstructors.hpp.

Member Function Documentation

template<class Real >
void ROL::Quadrature< Real >::addPointAndWeight ( std::vector< Real >  point,
Real  weight,
int  loc 
)
protected

Definition at line 59 of file ROL_QuadratureDef.hpp.

Referenced by ROL::Quadrature< Real >::Quadrature().

template<class Real >
void ROL::Quadrature< Real >::getCubature ( std::vector< std::vector< Real > > &  cubPoints,
std::vector< Real > &  cubWeights 
) const
virtual
template<class Real >
int ROL::Quadrature< Real >::getNumPoints ( ) const
virtual

Definition at line 65 of file ROL_QuadratureDef.hpp.

Referenced by ROL::kron_prod().

template<class Real >
void ROL::Quadrature< Real >::getAccuracy ( std::vector< int > &  accuracy) const
virtual

Definition at line 70 of file ROL_QuadratureDef.hpp.

Referenced by ROL::Quadrature< Real >::Quadrature().

template<class Real >
int ROL::Quadrature< Real >::getDimension ( ) const
virtual

Definition at line 87 of file ROL_QuadratureDef.hpp.

Referenced by ROL::kron_prod().

template<class Real >
std::map< std::vector< Real >, int >::iterator ROL::Quadrature< Real >::begin ( )
virtual
template<class Real >
std::map< std::vector< Real >, int >::iterator ROL::Quadrature< Real >::end ( )
virtual
template<class Real >
void ROL::Quadrature< Real >::insert ( typename std::map< std::vector< Real >, int >::iterator  it,
std::vector< Real >  point,
Real  weight 
)
virtual

Definition at line 102 of file ROL_QuadratureDef.hpp.

Referenced by ROL::kron_prod().

template<class Real >
std::vector< Real > ROL::Quadrature< Real >::getNode ( typename std::map< std::vector< Real >, int >::iterator  it)
virtual

Definition at line 109 of file ROL_QuadratureDef.hpp.

Referenced by ROL::kron_prod().

template<class Real >
Real ROL::Quadrature< Real >::getWeight ( int  node)
virtual
template<class Real >
Real ROL::Quadrature< Real >::getWeight ( std::vector< Real >  point)
virtual

Definition at line 119 of file ROL_QuadratureDef.hpp.

template<class Real >
void ROL::Quadrature< Real >::update ( Real  alpha,
Quadrature< Real > &  rule 
)
virtual
template<class Real >
void ROL::Quadrature< Real >::normalize ( )
virtual

Definition at line 149 of file ROL_QuadratureDef.hpp.

Referenced by ROL::Quadrature< Real >::Quadrature().

Member Data Documentation

template<class Real>
std::map<std::vector<Real>,int> ROL::Quadrature< Real >::points_
private

Definition at line 74 of file ROL_Quadrature.hpp.

Referenced by ROL::Quadrature< Real >::Quadrature().

template<class Real>
std::vector<Real> ROL::Quadrature< Real >::weights_
private

Definition at line 75 of file ROL_Quadrature.hpp.

Referenced by ROL::Quadrature< Real >::Quadrature().

template<class Real>
std::vector<int> ROL::Quadrature< Real >::accuracy_
private

Definition at line 76 of file ROL_Quadrature.hpp.

Referenced by ROL::Quadrature< Real >::Quadrature().

template<class Real>
int ROL::Quadrature< Real >::dimension_
private

Definition at line 77 of file ROL_Quadrature.hpp.


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