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

Implementation for B-spline functions of Laplace Operation, linear grids without boundaries. More...

#include <OperationLaplaceExplicitLinear.hpp>

Inheritance diagram for sgpp::pde::OperationLaplaceExplicitLinear:
sgpp::pde::UpDownOneOpDim sgpp::base::OperationMatrix

Public Member Functions

virtual void down (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result, size_t dim)
 std 1D down operation More...
 
virtual void downOpDim (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result, size_t dim)
 special 1D down operation that is only executed in one direction More...
 
virtual void mult (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result)
 Implementation of standard matrix multiplication. More...
 
 OperationLaplaceExplicitLinear (sgpp::base::DataMatrix *m, sgpp::base::GridStorage *storage)
 Constructor that uses a external matrix pointer to construct the matrix, i.e. More...
 
 OperationLaplaceExplicitLinear (sgpp::base::GridStorage *storage)
 Constructor that creates an own matrix i.e. More...
 
virtual void specialOP (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result, size_t dim, size_t gradient_dim)
 All calculations for gradient_dim, parallel version using OpenMP 3. More...
 
virtual void up (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result, size_t dim)
 std 1D up operation More...
 
virtual void upOpDim (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result, size_t dim)
 special 1D up operation that is only executed in one direction More...
 
virtual ~OperationLaplaceExplicitLinear ()
 Destructor. More...
 
- Public Member Functions inherited from sgpp::pde::UpDownOneOpDim
void multParallelBuildingBlock (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result, size_t operationDim)
 This functions provides the same functionality as the normal mult routine. More...
 
 UpDownOneOpDim (sgpp::base::GridStorage *storage, sgpp::base::DataVector &coef)
 Constructor. More...
 
 UpDownOneOpDim (sgpp::base::GridStorage *storage)
 Constructor. More...
 
virtual ~UpDownOneOpDim ()
 Destructor. More...
 
- Public Member Functions inherited from sgpp::base::OperationMatrix
 OperationMatrix ()
 Constructor. More...
 
virtual ~OperationMatrix ()
 Destructor. More...
 

Additional Inherited Members

- Protected Types inherited from sgpp::pde::UpDownOneOpDim
typedef sgpp::base::GridStorage::grid_iterator grid_iterator
 
- Protected Member Functions inherited from sgpp::pde::UpDownOneOpDim
void updown (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result, size_t dim, size_t op_dim)
 Recursive procedure for updown(), parallel version using OpenMP 3. More...
 
- Protected Attributes inherited from sgpp::pde::UpDownOneOpDim
const std::vector< size_t > algoDims
 algorithmic dimensions, operator is applied in this dimensions More...
 
sgpp::base::DataVectorcoefs
 Pointer to the sgpp::base::DataVector of the coefs. More...
 
const size_t numAlgoDims_
 number of algorithmic dimensions More...
 
sgpp::base::GridStoragestorage
 Pointer to the grid's storage object. More...
 
- Static Protected Attributes inherited from sgpp::pde::UpDownOneOpDim
static const size_t maxParallelDims_ = TASKS_PARALLEL_UPDOWN
 max number of parallel stages (dimension recursive calls) More...
 

Detailed Description

Implementation for B-spline functions of Laplace Operation, linear grids without boundaries.

Constructor & Destructor Documentation

◆ OperationLaplaceExplicitLinear() [1/2]

sgpp::pde::OperationLaplaceExplicitLinear::OperationLaplaceExplicitLinear ( sgpp::base::DataMatrix m,
sgpp::base::GridStorage storage 
)

Constructor that uses a external matrix pointer to construct the matrix, i.e.

matrix is NOT destroyed by the destructor of OperationLaplaceExplicitLinear

Parameters
mpointer to datamatrix of size (number of grid point) x (number of grid points)
storagepointer to the sparse grid storage

References m.

◆ OperationLaplaceExplicitLinear() [2/2]

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

◆ ~OperationLaplaceExplicitLinear()

sgpp::pde::OperationLaplaceExplicitLinear::~OperationLaplaceExplicitLinear ( )
virtual

Destructor.

Member Function Documentation

◆ down()

void sgpp::pde::OperationLaplaceExplicitLinear::down ( sgpp::base::DataVector alpha,
sgpp::base::DataVector result,
size_t  dim 
)
virtual

std 1D down operation

Parameters
dimdimension in which to apply the down-part
alphavector of coefficients
resultvector to store the results in

Implements sgpp::pde::UpDownOneOpDim.

References create_scripts::s, and sgpp::base::sweep< FUNC >::sweep1D().

◆ downOpDim()

void sgpp::pde::OperationLaplaceExplicitLinear::downOpDim ( sgpp::base::DataVector alpha,
sgpp::base::DataVector result,
size_t  dim 
)
virtual

special 1D down operation that is only executed in one direction

Parameters
alphathe coefficients of the gridpoints
resultvector with the result of this operation
dimthe dimension in that down-Gradient is applied

Implements sgpp::pde::UpDownOneOpDim.

Referenced by specialOP().

◆ mult()

void sgpp::pde::OperationLaplaceExplicitLinear::mult ( sgpp::base::DataVector alpha,
sgpp::base::DataVector result 
)
virtual

Implementation of standard matrix multiplication.

Parameters
alphaDataVector that is multiplied to the matrix
resultDataVector into which the result of multiplication is stored

Reimplemented from sgpp::pde::UpDownOneOpDim.

References python.statsfileInfo::data, sgpp::base::DataMatrix::getNcols(), sgpp::base::DataMatrix::getNrows(), sgpp::base::DataMatrix::getPointer(), sgpp::base::DataVector::getSize(), python.statsfileInfo::i, and python.utils.statsfile2gnuplot::j.

◆ specialOP()

void sgpp::pde::OperationLaplaceExplicitLinear::specialOP ( sgpp::base::DataVector alpha,
sgpp::base::DataVector result,
size_t  dim,
size_t  op_dim 
)
virtual

All calculations for gradient_dim, parallel version using OpenMP 3.

Parameters
alphathe coefficients of the grid points
resultthe result of the operations
dimthe current dimension in the recursion
op_dimthe dimension in that a special operation is applied

Reimplemented from sgpp::pde::UpDownOneOpDim.

References downOpDim(), sgpp::base::DataVector::getSize(), and sgpp::pde::UpDownOneOpDim::updown().

◆ up()

void sgpp::pde::OperationLaplaceExplicitLinear::up ( sgpp::base::DataVector alpha,
sgpp::base::DataVector result,
size_t  dim 
)
virtual

std 1D up operation

Parameters
dimdimension in which to apply the up-part
alphavector of coefficients
resultvector to store the results in

Implements sgpp::pde::UpDownOneOpDim.

References create_scripts::s, and sgpp::base::sweep< FUNC >::sweep1D().

◆ upOpDim()

void sgpp::pde::OperationLaplaceExplicitLinear::upOpDim ( sgpp::base::DataVector alpha,
sgpp::base::DataVector result,
size_t  dim 
)
virtual

special 1D up operation that is only executed in one direction

Parameters
alphathe coefficients of the gridpoints
resultvector with the result of this operation
dimthe dimension in that up-Gradient is applied

Implements sgpp::pde::UpDownOneOpDim.


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