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

#include <OperationMultiEvalModMaskStreaming.hpp>

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

Public Member Functions

size_t getChunkDataPoints ()
 
size_t getChunkGridPoints ()
 
double getDuration () override
 
void mult (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result) override
 Multiplication of \(B^T\) with vector \(\alpha\). More...
 
void multTranspose (sgpp::base::DataVector &source, sgpp::base::DataVector &result) override
 Multiplication of \(B\) with vector \(\alpha\). More...
 
 OperationMultiEvalModMaskStreaming (base::Grid &grid, base::DataMatrix &dataset)
 
void prepare () override
 Used for kernel-specific setup like special data structures that are defined from the current state of the grid. More...
 
 ~OperationMultiEvalModMaskStreaming ()
 
- 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 ~OperationMultipleEval ()
 Destructor. More...
 

Protected Attributes

double duration
 
std::vector< double > index
 Member to store the sparse grid's indices for better vectorization. More...
 
std::vector< double > level
 Member to store the sparse grid's levels for better vectorization. More...
 
std::vector< double > mask
 
sgpp::base::SGppStopwatch myTimer_
 Timer object to handle time measurements. More...
 
std::vector< double > offset
 
sgpp::base::DataMatrix preparedDataset
 
base::GridStoragestorage
 
- Protected Attributes inherited from sgpp::base::OperationMultipleEval
DataMatrixdataset
 
Gridgrid
 
bool isPrepared
 

Constructor & Destructor Documentation

◆ OperationMultiEvalModMaskStreaming()

sgpp::datadriven::OperationMultiEvalModMaskStreaming::OperationMultiEvalModMaskStreaming ( base::Grid grid,
base::DataMatrix dataset 
)

◆ ~OperationMultiEvalModMaskStreaming()

sgpp::datadriven::OperationMultiEvalModMaskStreaming::~OperationMultiEvalModMaskStreaming ( )

References python.leja::start.

Member Function Documentation

◆ getChunkDataPoints()

size_t sgpp::datadriven::OperationMultiEvalModMaskStreaming::getChunkDataPoints ( )

◆ getChunkGridPoints()

size_t sgpp::datadriven::OperationMultiEvalModMaskStreaming::getChunkGridPoints ( )

Referenced by prepare().

◆ getDuration()

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

◆ mult()

void sgpp::datadriven::OperationMultiEvalModMaskStreaming::mult ( sgpp::base::DataVector alpha,
sgpp::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 duration, getChunkDataPoints(), sgpp::base::DataMatrix::getNcols(), sgpp::base::DataVector::getSize(), index, level, mask, myTimer_, offset, preparedDataset, sgpp::base::DataVector::setAll(), sgpp::base::SGppStopwatch::start(), python.leja::start, and sgpp::base::SGppStopwatch::stop().

◆ multTranspose()

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

◆ prepare()

void sgpp::datadriven::OperationMultiEvalModMaskStreaming::prepare ( )
overridevirtual

Used for kernel-specific setup like special data structures that are defined from the current state of the grid.

This function is by default called with each "mult()", "multTranspose()" or evaluation operation and can be ignored from an external perspective. This is not overridden by every kernel.

Reimplemented from sgpp::base::OperationMultipleEval.

References chess::dim, sgpp::base::HashGridPoint::get(), getChunkGridPoints(), sgpp::base::HashGridStorage::getDimension(), sgpp::base::HashGridStorage::getPoint(), sgpp::base::HashGridStorage::getSize(), python.statsfileInfo::i, index, level, mask, offset, and storage.

Referenced by OperationMultiEvalModMaskStreaming().

Member Data Documentation

◆ duration

double sgpp::datadriven::OperationMultiEvalModMaskStreaming::duration
protected

Referenced by getDuration(), mult(), and multTranspose().

◆ index

std::vector<double> sgpp::datadriven::OperationMultiEvalModMaskStreaming::index
protected

Member to store the sparse grid's indices for better vectorization.

Referenced by mult(), multTranspose(), and prepare().

◆ level

std::vector<double> sgpp::datadriven::OperationMultiEvalModMaskStreaming::level
protected

Member to store the sparse grid's levels for better vectorization.

Referenced by mult(), multTranspose(), and prepare().

◆ mask

std::vector<double> sgpp::datadriven::OperationMultiEvalModMaskStreaming::mask
protected

Referenced by mult(), multTranspose(), and prepare().

◆ myTimer_

sgpp::base::SGppStopwatch sgpp::datadriven::OperationMultiEvalModMaskStreaming::myTimer_
protected

Timer object to handle time measurements.

Referenced by mult(), and multTranspose().

◆ offset

std::vector<double> sgpp::datadriven::OperationMultiEvalModMaskStreaming::offset
protected

Referenced by mult(), multTranspose(), and prepare().

◆ preparedDataset

sgpp::base::DataMatrix sgpp::datadriven::OperationMultiEvalModMaskStreaming::preparedDataset
protected

◆ storage

base::GridStorage* sgpp::datadriven::OperationMultiEvalModMaskStreaming::storage
protected

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