SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::datadriven::OperationMultipleEvalDistributed Class Referenceabstract

Distributed interface for OperationMultipleEval. More...

#include <OperationMultipleEvalDistributed.hpp>

Inheritance diagram for sgpp::datadriven::OperationMultipleEvalDistributed:
sgpp::base::OperationMultipleEval sgpp::datadriven::OperationMultipleEvalLinearDistributed sgpp::datadriven::OperationMultipleEvalModLinearDistributed

Public Member Functions

void evalParallel (DataVector &alpha, DataVectorDistributed &result)
 Evaluate multiple datapoints with the specified grid in parallel.
 
void mult (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result) override
 Not implemented in distributed version.
 
virtual void multDistributed (sgpp::base::DataVector &alpha, DataVectorDistributed &result)=0
 Distributed version of mult.
 
void multTranspose (sgpp::base::DataVector &source, sgpp::base::DataVector &result) override
 Not implemented in distributed version.
 
virtual void multTransposeDistributed (sgpp::base::DataVector &source, DataVectorDistributed &result)=0
 Distributed version of multTransposed.
 
 OperationMultipleEvalDistributed (sgpp::base::Grid &grid, sgpp::base::DataMatrix &dataset)
 Constructor.
 
 ~OperationMultipleEvalDistributed () override
 Destructor.
 
- Public Member Functions inherited from sgpp::base::OperationMultipleEval
void eval (DataVector &alpha, DataVector &result)
 Evaluate multiple datapoints with the specified grid.
 
virtual double getDuration ()=0
 
virtual std::string getImplementationName ()
 Name of this implementation of the operation.
 
virtual void mult (DataVector &alpha, DataVector &result, size_t startIndexData, size_t endIndexData)
 Multiplication of \(B^T\) with vector \(\alpha\).
 
virtual void multTranspose (DataVector &source, DataVector &result, size_t startIndexGrid, size_t endIndexGrid)
 Multiplication of \(B\) with vector \(\alpha\).
 
 OperationMultipleEval (sgpp::base::Grid &grid, DataMatrix &dataset)
 Constructor.
 
virtual void prepare ()
 Used for kernel-specific setup like special data structures that are defined from the current state of the grid.
 
virtual ~OperationMultipleEval ()
 Destructor.
 

Additional Inherited Members

- Protected Attributes inherited from sgpp::base::OperationMultipleEval
DataMatrixdataset
 
Gridgrid
 
bool isPrepared
 

Detailed Description

Distributed interface for OperationMultipleEval.

Constructor & Destructor Documentation

◆ OperationMultipleEvalDistributed()

sgpp::datadriven::OperationMultipleEvalDistributed::OperationMultipleEvalDistributed ( sgpp::base::Grid grid,
sgpp::base::DataMatrix dataset 
)
inline

Constructor.

Parameters
gridthe sparse grid used for this operation
datasetdataset that should be evaluated on the sparse grid

◆ ~OperationMultipleEvalDistributed()

sgpp::datadriven::OperationMultipleEvalDistributed::~OperationMultipleEvalDistributed ( )
inlineoverride

Destructor.

Member Function Documentation

◆ evalParallel()

void sgpp::datadriven::OperationMultipleEvalDistributed::evalParallel ( DataVector alpha,
DataVectorDistributed result 
)
inline

Evaluate multiple datapoints with the specified grid in parallel.

Parameters
alphasurplus vector of the grid
resultdistributed result of the evaluations

References multDistributed().

◆ mult()

void sgpp::datadriven::OperationMultipleEvalDistributed::mult ( sgpp::base::DataVector alpha,
sgpp::base::DataVector result 
)
inlineoverridevirtual

Not implemented in distributed version.

Implements sgpp::base::OperationMultipleEval.

◆ multDistributed()

virtual void sgpp::datadriven::OperationMultipleEvalDistributed::multDistributed ( sgpp::base::DataVector alpha,
DataVectorDistributed result 
)
pure virtual

Distributed version of mult.

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

Implemented in sgpp::datadriven::OperationMultipleEvalLinearDistributed, and sgpp::datadriven::OperationMultipleEvalModLinearDistributed.

Referenced by evalParallel().

◆ multTranspose()

void sgpp::datadriven::OperationMultipleEvalDistributed::multTranspose ( sgpp::base::DataVector source,
sgpp::base::DataVector result 
)
inlineoverridevirtual

Not implemented in distributed version.

Implements sgpp::base::OperationMultipleEval.

◆ multTransposeDistributed()

virtual void sgpp::datadriven::OperationMultipleEvalDistributed::multTransposeDistributed ( sgpp::base::DataVector source,
DataVectorDistributed result 
)
pure virtual

Distributed version of multTransposed.

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

Implemented in sgpp::datadriven::OperationMultipleEvalLinearDistributed, and sgpp::datadriven::OperationMultipleEvalModLinearDistributed.


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