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

This class is a HPX wrapper for other MultiEval-operations that uses a very simple master-slave distributed processing. More...

#include <OperationMultiEvalHPX.hpp>

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

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
DataMatrixdataset
 
Gridgrid
 
bool isPrepared
 

Detailed Description

This class is a HPX wrapper for other MultiEval-operations that uses a very simple master-slave distributed processing.

Constructor & Destructor Documentation

sgpp::datadriven::OperationMultiEvalHPX::OperationMultiEvalHPX ( base::Grid grid,
base::DataMatrix dataset,
sgpp::datadriven::OperationMultipleEvalConfiguration configuration,
bool  verbose = false 
)

References prepare().

sgpp::datadriven::OperationMultiEvalHPX::~OperationMultiEvalHPX ( )

Member Function Documentation

double sgpp::datadriven::OperationMultiEvalHPX::getDuration ( )
virtual
void sgpp::datadriven::OperationMultiEvalHPX::multTranspose ( sgpp::base::DataVector source,
sgpp::base::DataVector result 
)
virtual

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 duration, myTimer, sgpp::base::SGppStopwatch::start(), and sgpp::base::SGppStopwatch::stop().

void sgpp::datadriven::OperationMultiEvalHPX::prepare ( )
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().

Member Data Documentation

sgpp::datadriven::OperationMultipleEvalConfiguration sgpp::datadriven::OperationMultiEvalHPX::configuration
protected

Referenced by mult().

double sgpp::datadriven::OperationMultiEvalHPX::duration
protected

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

base::SGppStopwatch sgpp::datadriven::OperationMultiEvalHPX::myTimer
protected

Referenced by mult(), and multTranspose().

base::QueueLoadBalancerMutex sgpp::datadriven::OperationMultiEvalHPX::queueLoadBalancerMult
protected
bool sgpp::datadriven::OperationMultiEvalHPX::verbose
protected

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