SG++
sgpp::base::HierarchisationModFundamentalSpline Class Reference

Functor for hierarchization with modified fundamental splines via BreadthFirstSearch. More...

#include <HierarchisationModFundamentalSpline.hpp>

Public Member Functions

 HierarchisationModFundamentalSpline (ModFundamentalSplineGrid *grid)
 Constructor. More...
 
void operator() (const DataVector &source, DataVector &result, const grid_iterator &iterator)
 Functor operator. More...
 
void operator() (const DataMatrix &source, DataMatrix &result, const grid_iterator &iterator)
 Functor operator. More...
 
virtual ~HierarchisationModFundamentalSpline ()
 Destructor. More...
 

Protected Types

typedef GridStorage::grid_iterator grid_iterator
 grid iterator More...
 

Protected Attributes

ModFundamentalSplineGridgrid
 grid More...
 
GridStoragestorage
 grid storage More...
 

Detailed Description

Functor for hierarchization with modified fundamental splines via BreadthFirstSearch.

Member Typedef Documentation

Constructor & Destructor Documentation

sgpp::base::HierarchisationModFundamentalSpline::HierarchisationModFundamentalSpline ( ModFundamentalSplineGrid grid)
explicit

Constructor.

Parameters
gridgrid
sgpp::base::HierarchisationModFundamentalSpline::~HierarchisationModFundamentalSpline ( )
virtual

Destructor.

Member Function Documentation

void sgpp::base::HierarchisationModFundamentalSpline::operator() ( const DataVector source,
DataVector result,
const grid_iterator iterator 
)

Functor operator.

For each grid point, subtract the value of basis function at the given iterator from the entry in result corresponding to the grid point.

Parameters
[in]sourcenode values
[out]resultresult of the functor
iteratorcurrent grid point

References sgpp::base::HashGridPoint::get(), sgpp::base::HashGridIterator::get(), sgpp::base::ModFundamentalSplineGrid::getDegree(), sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridStorage::getSize(), sgpp::base::HashGridPoint::getStandardCoordinate(), grid, sgpp::base::HashGridIterator::seq(), and storage.

void sgpp::base::HierarchisationModFundamentalSpline::operator() ( const DataMatrix source,
DataMatrix result,
const grid_iterator iterator 
)

Functor operator.

For each grid point, subtract the value of basis function at the given iterator from the row in result corresponding to the grid point.

Parameters
[in]sourcenode values
[out]resultresult of the functor
iteratorcurrent grid point

References sgpp::base::HashGridPoint::get(), sgpp::base::HashGridIterator::get(), sgpp::base::DataMatrix::get(), sgpp::base::ModFundamentalSplineGrid::getDegree(), sgpp::base::HashGridStorage::getDimension(), sgpp::base::DataMatrix::getNcols(), sgpp::base::HashGridStorage::getSize(), sgpp::base::HashGridPoint::getStandardCoordinate(), grid, sgpp::base::HashGridIterator::seq(), sgpp::base::DataMatrix::set(), and storage.

Member Data Documentation

GridStorage& sgpp::base::HierarchisationModFundamentalSpline::storage
protected

grid storage

Referenced by operator()().


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