SG++-Doxygen-Documentation
sgpp::pde::dPhidPhiUpModLinear Class Reference

Implementation of sweep operator (): 1D Up for Bilinearform \(\int_{x} \frac{\partial \phi(x)}{\partial x} \frac{\partial \phi(x)}{\partial x} dx\) on mod-linear grids. More...

#include <dPhidPhiUpModLinear.hpp>

Public Member Functions

 dPhidPhiUpModLinear (sgpp::base::GridStorage *storage)
 Constructor. More...
 
void operator() (sgpp::base::DataVector &source, sgpp::base::DataVector &result, grid_iterator &index, size_t dim)
 This operations performs the calculation of upGradient in the direction of dimension dim More...
 
 ~dPhidPhiUpModLinear ()
 Destructor. More...
 

Protected Types

typedef sgpp::base::GridStorage::grid_iterator grid_iterator
 

Protected Member Functions

void rec (sgpp::base::DataVector &source, sgpp::base::DataVector &result, grid_iterator &index, size_t dim, double &f)
 recursive function for the calculation of upGradient More...
 

Protected Attributes

sgpp::base::GridStoragestorage
 Pointer to sgpp::base::GridStorage object. More...
 

Detailed Description

Implementation of sweep operator (): 1D Up for Bilinearform \(\int_{x} \frac{\partial \phi(x)}{\partial x} \frac{\partial \phi(x)}{\partial x} dx\) on mod-linear grids.

Member Typedef Documentation

◆ grid_iterator

Constructor & Destructor Documentation

◆ dPhidPhiUpModLinear()

sgpp::pde::dPhidPhiUpModLinear::dPhidPhiUpModLinear ( sgpp::base::GridStorage storage)
explicit

Constructor.

Parameters
storagethe grid's sgpp::base::GridStorage object

◆ ~dPhidPhiUpModLinear()

sgpp::pde::dPhidPhiUpModLinear::~dPhidPhiUpModLinear ( )

Destructor.

Member Function Documentation

◆ operator()()

void sgpp::pde::dPhidPhiUpModLinear::operator() ( sgpp::base::DataVector source,
sgpp::base::DataVector result,
grid_iterator index,
size_t  dim 
)

This operations performs the calculation of upGradient in the direction of dimension dim

Parameters
sourcesgpp::base::DataVector that contains the gridpoint's coefficients (values from the vector of the laplace operation)
resultsgpp::base::DataVector that contains the result of the down operation
indexa iterator object of the grid
dimcurrent fixed dimension of the 'execution direction'

References python.statsfileInfo::f, and rec().

◆ rec()

void sgpp::pde::dPhidPhiUpModLinear::rec ( sgpp::base::DataVector source,
sgpp::base::DataVector result,
grid_iterator index,
size_t  dim,
double &  f 
)
protected

recursive function for the calculation of upGradient

Parameters
sourcesgpp::base::DataVector that contains the coefficients of the ansatzfunction
resultsgpp::base::DataVector in which the result of the operation is stored
indexreference to a griditerator object that is used navigate through the grid
dimthe dimension in which the operation is executed
ffunction value in the middle

References python.statsfileInfo::f, sgpp::base::HashGridIterator::get(), sgpp::base::HashGridIterator::hint(), python.statsfileInfo::i, sgpp::base::HashGridStorage::isInvalidSequenceNumber(), sgpp::base::HashGridIterator::leftChild(), sgpp::combigrid::pow(), sgpp::base::HashGridIterator::rightChild(), sgpp::base::HashGridIterator::seq(), sgpp::base::HashGridIterator::stepRight(), storage, and sgpp::base::HashGridIterator::up().

Referenced by operator()().

Member Data Documentation

◆ storage

sgpp::base::GridStorage* sgpp::pde::dPhidPhiUpModLinear::storage
protected

Pointer to sgpp::base::GridStorage object.

Referenced by rec().


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