SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::pde::OperationMatrixLTwoDotExplicitModifiedLinear Class Reference

Explicit representation of the matrix \((\Phi_i,\Phi_j)_{L2}\) for a sparse grid. More...

#include <OperationMatrixLTwoDotExplicitModifiedLinear.hpp>

Inheritance diagram for sgpp::pde::OperationMatrixLTwoDotExplicitModifiedLinear:
sgpp::base::OperationMatrix

Public Member Functions

void buildMatrixWithBounds (sgpp::base::DataMatrix *mat, sgpp::base::Grid *grid, size_t i_start=0, size_t i_end=0, size_t j_start=0, size_t j_end=0)
 generalization of "buildMatrix" function, creates L2-dot-product matrix for specified bounds
 
virtual void mult (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result)
 Implementation of standard matrix multiplication.
 
 OperationMatrixLTwoDotExplicitModifiedLinear ()
 Constructor that only builds the object, without initialization.
 
 OperationMatrixLTwoDotExplicitModifiedLinear (sgpp::base::DataMatrix *m, sgpp::base::Grid *grid)
 Constructor that uses a external matrix pointer to construct the matrix, i.e.
 
 OperationMatrixLTwoDotExplicitModifiedLinear (sgpp::base::Grid *grid)
 Constructor that creates an own matrix i.e.
 
virtual ~OperationMatrixLTwoDotExplicitModifiedLinear ()
 Destructor.
 
- Public Member Functions inherited from sgpp::base::OperationMatrix
 OperationMatrix ()
 Constructor.
 
virtual ~OperationMatrix ()
 Destructor.
 

Detailed Description

Explicit representation of the matrix \((\Phi_i,\Phi_j)_{L2}\) for a sparse grid.

Constructor & Destructor Documentation

◆ OperationMatrixLTwoDotExplicitModifiedLinear() [1/3]

sgpp::pde::OperationMatrixLTwoDotExplicitModifiedLinear::OperationMatrixLTwoDotExplicitModifiedLinear ( )

Constructor that only builds the object, without initialization.

◆ OperationMatrixLTwoDotExplicitModifiedLinear() [2/3]

sgpp::pde::OperationMatrixLTwoDotExplicitModifiedLinear::OperationMatrixLTwoDotExplicitModifiedLinear ( sgpp::base::DataMatrix m,
sgpp::base::Grid grid 
)

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

matrix is NOT destroyed by the destructor of OperationMatrixLTwoDotExplicitModifiedLinearFullGrid

Parameters
mpointer to datamatrix of size (number of grid point) x (number of grid points)
gridthe sparse grid

References grid(), and m.

◆ OperationMatrixLTwoDotExplicitModifiedLinear() [3/3]

sgpp::pde::OperationMatrixLTwoDotExplicitModifiedLinear::OperationMatrixLTwoDotExplicitModifiedLinear ( sgpp::base::Grid grid)
explicit

Constructor that creates an own matrix i.e.

matrix is destroyed by the destructor of OperationMatrixLTwoDotExplicitModifiedLinearFullGrid

Parameters
gridthe sparse grid

References grid().

◆ ~OperationMatrixLTwoDotExplicitModifiedLinear()

sgpp::pde::OperationMatrixLTwoDotExplicitModifiedLinear::~OperationMatrixLTwoDotExplicitModifiedLinear ( )
virtual

Destructor.

Member Function Documentation

◆ buildMatrixWithBounds()

void sgpp::pde::OperationMatrixLTwoDotExplicitModifiedLinear::buildMatrixWithBounds ( sgpp::base::DataMatrix mat,
sgpp::base::Grid grid,
size_t  i_start = 0,
size_t  i_end = 0,
size_t  j_start = 0,
size_t  j_end = 0 
)
inline

generalization of "buildMatrix" function, creates L2-dot-product matrix for specified bounds

Parameters
matmatrix for storage of L2 products
gridthe underlying grid
i_startstart index for row iteration
i_endend index for row iteration
j_startstart index for column iteration
j_endend index for column iteration

References sgpp::base::DataMatrix::get(), grid(), level, and sgpp::base::DataMatrix::set().

◆ mult()

void sgpp::pde::OperationMatrixLTwoDotExplicitModifiedLinear::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

Implements sgpp::base::OperationMatrix.

References alpha, sgpp::base::DataMatrix::getNcols(), sgpp::base::DataMatrix::getNrows(), sgpp::base::DataMatrix::getPointer(), and sgpp::base::DataVector::getSize().


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