SG++-Doxygen-Documentation
sgpp::datadriven::OperationMultipleEvalMatrix Class Reference

wrapper class for matrix multiplication for use in solver More...

#include <OperationMultipleEvalMatrix.hpp>

Inheritance diagram for sgpp::datadriven::OperationMultipleEvalMatrix:
sgpp::base::OperationMultipleEval

Public Member Functions

double getDuration () override
 
void mult (base::DataVector &alpha, base::DataVector &result) override
 Multiplication of \(B^T\) with vector \(\alpha\). More...
 
void multTranspose (base::DataVector &source, base::DataVector &result) override
 Multiplication of \(B\) with vector \(\alpha\). More...
 
 OperationMultipleEvalMatrix (base::Grid &grid, base::DataMatrix &dataset)
 Constructor. More...
 
 ~OperationMultipleEvalMatrix () override
 Destructor. More...
 
- Public Member Functions inherited from sgpp::base::OperationMultipleEval
void eval (DataVector &alpha, DataVector &result)
 Evaluate multiple datapoints with the specified grid. More...
 
virtual std::string getImplementationName ()
 Name of this implementation of the operation. More...
 
virtual void mult (DataVector &alpha, DataVector &result, size_t startIndexData, size_t endIndexData)
 Multiplication of \(B^T\) with vector \(\alpha\). More...
 
virtual void multTranspose (DataVector &source, DataVector &result, size_t startIndexGrid, size_t endIndexGrid)
 Multiplication of \(B\) with vector \(\alpha\). More...
 
 OperationMultipleEval (sgpp::base::Grid &grid, DataMatrix &dataset)
 Constructor. More...
 
virtual void prepare ()
 Used for kernel-specific setup like special data structures that are defined from the current state of the grid. More...
 
virtual ~OperationMultipleEval ()
 Destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from sgpp::base::OperationMultipleEval
DataMatrixdataset
 
Gridgrid
 
bool isPrepared
 

Detailed Description

wrapper class for matrix multiplication for use in solver

Constructor & Destructor Documentation

◆ OperationMultipleEvalMatrix()

sgpp::datadriven::OperationMultipleEvalMatrix::OperationMultipleEvalMatrix ( base::Grid grid,
base::DataMatrix dataset 
)
inline

Constructor.

Parameters
griddummy grid for inheritance reasons
datasetthe dataset that should be evaluated

◆ ~OperationMultipleEvalMatrix()

sgpp::datadriven::OperationMultipleEvalMatrix::~OperationMultipleEvalMatrix ( )
inlineoverride

Destructor.

References alpha, getDuration(), mult(), and multTranspose().

Member Function Documentation

◆ getDuration()

double sgpp::datadriven::OperationMultipleEvalMatrix::getDuration ( )
overridevirtual

◆ mult()

void sgpp::datadriven::OperationMultipleEvalMatrix::mult ( base::DataVector alpha,
base::DataVector result 
)
overridevirtual

Multiplication of \(B^T\) with vector \(\alpha\).

Parameters
alphavector, to which \(B\) is applied. Typically the coefficient vector
resultthe result vector of the matrix vector multiplication

Implements sgpp::base::OperationMultipleEval.

References sgpp::base::OperationMultipleEval::dataset, and sgpp::base::DataMatrix::mult().

Referenced by ~OperationMultipleEvalMatrix().

◆ multTranspose()

void sgpp::datadriven::OperationMultipleEvalMatrix::multTranspose ( base::DataVector source,
base::DataVector result 
)
overridevirtual

Multiplication of \(B\) with vector \(\alpha\).

Parameters
sourcevector, to which \(B^T\) is applied. Typically the coefficient vector
resultthe result vector of the matrix vector multiplication

Implements sgpp::base::OperationMultipleEval.

References sgpp::base::OperationMultipleEval::dataset, and sgpp::base::DataMatrix::transpose().

Referenced by ~OperationMultipleEvalMatrix().


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