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

#include <OperationMultiEvalStreaming.hpp>

Inheritance diagram for sgpp::datadriven::OperationMultiEvalStreaming:
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...
 
 OperationMultiEvalStreaming (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...
 
 ~OperationMultiEvalStreaming ()
 
- 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
 
sgpp::base::DataMatrixindex_ = nullptr
 Member to store the sparse grid's indices for better vectorization. More...
 
sgpp::base::DataMatrixlevel_ = nullptr
 Member to store the sparse grid's levels for better vectorization. More...
 
sgpp::base::SGppStopwatch myTimer_
 Timer object to handle time measurements. More...
 
sgpp::base::DataMatrix preparedDataset
 
base::GridStoragestorage
 
- Protected Attributes inherited from sgpp::base::OperationMultipleEval
DataMatrixdataset
 
Gridgrid
 
bool isPrepared
 

Constructor & Destructor Documentation

sgpp::datadriven::OperationMultiEvalStreaming::OperationMultiEvalStreaming ( base::Grid grid,
base::DataMatrix dataset 
)
sgpp::datadriven::OperationMultiEvalStreaming::~OperationMultiEvalStreaming ( )

References index_, level_, and python.leja::start.

Member Function Documentation

size_t sgpp::datadriven::OperationMultiEvalStreaming::getChunkDataPoints ( )
size_t sgpp::datadriven::OperationMultiEvalStreaming::getChunkGridPoints ( )
double sgpp::datadriven::OperationMultiEvalStreaming::getDuration ( )
overridevirtual
void sgpp::datadriven::OperationMultiEvalStreaming::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_, myTimer_, preparedDataset, sgpp::base::DataVector::setAll(), sgpp::base::SGppStopwatch::start(), python.leja::start, and sgpp::base::SGppStopwatch::stop().

void sgpp::datadriven::OperationMultiEvalStreaming::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.

Referenced by OperationMultiEvalStreaming().

Member Data Documentation

double sgpp::datadriven::OperationMultiEvalStreaming::duration
protected

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

sgpp::base::DataMatrix* sgpp::datadriven::OperationMultiEvalStreaming::index_ = nullptr
protected

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

Referenced by mult(), multTranspose(), and ~OperationMultiEvalStreaming().

sgpp::base::DataMatrix* sgpp::datadriven::OperationMultiEvalStreaming::level_ = nullptr
protected

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

Referenced by mult(), multTranspose(), and ~OperationMultiEvalStreaming().

sgpp::base::SGppStopwatch sgpp::datadriven::OperationMultiEvalStreaming::myTimer_
protected

Timer object to handle time measurements.

Referenced by mult(), and multTranspose().

sgpp::base::DataMatrix sgpp::datadriven::OperationMultiEvalStreaming::preparedDataset
protected
base::GridStorage* sgpp::datadriven::OperationMultiEvalStreaming::storage
protected

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