SG++-Doxygen-Documentation
|
This class is a HPX wrapper for other MultiEval-operations that uses a very simple master-slave distributed processing. More...
#include <OperationMultiEvalHPX.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 | multTranspose (sgpp::base::DataVector &source, sgpp::base::DataVector &result) |
Multiplication of \(B\) with vector \(\alpha\). More... | |
OperationMultiEvalHPX (base::Grid &grid, base::DataMatrix &dataset, sgpp::datadriven::OperationMultipleEvalConfiguration &configuration, 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... | |
~OperationMultiEvalHPX () | |
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 | |
sgpp::datadriven::OperationMultipleEvalConfiguration | configuration |
size_t | dim |
double | duration |
base::SGppStopwatch | myTimer |
base::QueueLoadBalancerMutex | queueLoadBalancerMult |
bool | verbose |
Protected Attributes inherited from sgpp::base::OperationMultipleEval | |
DataMatrix & | dataset |
Grid & | grid |
bool | isPrepared |
This class is a HPX wrapper for other MultiEval-operations that uses a very simple master-slave distributed processing.
sgpp::datadriven::OperationMultiEvalHPX::OperationMultiEvalHPX | ( | base::Grid & | grid, |
base::DataMatrix & | dataset, | ||
sgpp::datadriven::OperationMultipleEvalConfiguration & | configuration, | ||
bool | verbose = false |
||
) |
References prepare().
sgpp::datadriven::OperationMultiEvalHPX::~OperationMultiEvalHPX | ( | ) |
|
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 configuration, sgpp::base::OperationMultipleEval::dataset, duration, python.statsfileInfo::f, sgpp::base::DataMatrix::getNrows(), sgpp::datadriven::OperationMultipleEvalConfiguration::getParameters(), sgpp::datadriven::OperationMultipleEvalConfiguration::getSubType(), sgpp::datadriven::OperationMultipleEvalConfiguration::getType(), sgpp::base::OperationMultipleEval::grid, python.statsfileInfo::i, myTimer, sgpp::base::Grid::serialize(), sgpp::base::SGppStopwatch::start(), sgpp::base::SGppStopwatch::stop(), sgpp::base::DataVector::toString(), and sgpp::base::DataMatrix::toString().
|
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, myTimer, sgpp::base::SGppStopwatch::start(), and sgpp::base::SGppStopwatch::stop().
|
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 OperationMultiEvalHPX().
|
protected |
Referenced by mult().
|
protected |
|
protected |
Referenced by getDuration(), mult(), and multTranspose().
|
protected |
Referenced by mult(), and multTranspose().
|
protected |
|
protected |