SG++-Doxygen-Documentation
|
This class is a MPI wrapper for other MultiEval-operations that uses a very simple master-slave MPI parallelization. More...
#include <OperationMultiEvalMPI.hpp>
Public Member Functions | |
double | getDuration () |
void | mult (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result) |
Multiplication of \(B^T\) with vector \(\alpha\). More... | |
void | multSlave (sgpp::base::DataVector &alpha) |
void | multTranspose (sgpp::base::DataVector &source, sgpp::base::DataVector &result) |
Multiplication of \(B\) with vector \(\alpha\). More... | |
OperationMultiEvalMPI (base::Grid &grid, base::DataMatrix &dataset, OperationMultipleEvalType type, OperationMultipleEvalSubType, bool verbose=false) | |
void | prepare () |
Used for kernel-specific setup like special data structures that are defined from the current state of the grid. More... | |
~OperationMultiEvalMPI () | |
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 | |
size_t | dim |
double | duration |
OperationMultipleEvalSubType | nodeImplSubType |
OperationMultipleEvalType | nodeImplType |
bool | verbose |
Protected Attributes inherited from sgpp::base::OperationMultipleEval | |
DataMatrix & | dataset |
Grid & | grid |
bool | isPrepared |
This class is a MPI wrapper for other MultiEval-operations that uses a very simple master-slave MPI parallelization.
sgpp::datadriven::OperationMultiEvalMPI::OperationMultiEvalMPI | ( | base::Grid & | grid, |
base::DataMatrix & | dataset, | ||
OperationMultipleEvalType | type, | ||
OperationMultipleEvalSubType | nodeImplSubType, | ||
bool | verbose = false |
||
) |
References prepare().
sgpp::datadriven::OperationMultiEvalMPI::~OperationMultiEvalMPI | ( | ) |
|
virtual |
Implements sgpp::base::OperationMultipleEval.
References duration.
|
virtual |
Multiplication of \(B^T\) with vector \(\alpha\).
alpha | vector, to which \(B\) is applied. Typically the coefficient vector |
result | the result vector of the matrix vector multiplication |
Implements sgpp::base::OperationMultipleEval.
References sgpp::base::OperationMultipleEval::dataset, duration, sgpp::base::DataMatrix::getNrows(), python.statsfileInfo::i, python.leja::start, and verbose.
void sgpp::datadriven::OperationMultiEvalMPI::multSlave | ( | sgpp::base::DataVector & | alpha | ) |
References sgpp::base::OperationMultipleEval::dataset, sgpp::datadriven::DEFAULT, dim, duration, sgpp::base::DataMatrix::get(), sgpp::base::DataMatrix::getNcols(), sgpp::base::DataVector::getPointer(), sgpp::base::OperationMultipleEval::grid, python.statsfileInfo::i, sgpp::base::OperationMultipleEval::mult(), nodeImplSubType, nodeImplType, sgpp::base::DataMatrix::set(), python.leja::start, sgpp::datadriven::STREAMING, and verbose.
|
virtual |
Multiplication of \(B\) with vector \(\alpha\).
source | vector, to which \(B^T\) is applied. Typically the coefficient vector |
result | the result vector of the matrix vector multiplication |
Implements sgpp::base::OperationMultipleEval.
References duration, and python.leja::start.
|
virtual |
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 OperationMultiEvalMPI().
|
protected |
|
protected |
Referenced by getDuration(), mult(), multSlave(), and multTranspose().
|
protected |
Referenced by multSlave().
|
protected |
Referenced by multSlave().
|
protected |