SG++-Doxygen-Documentation
sgpp::base::OperationMultipleEvalInterModLinear Class Reference

This class implements OperationMultipleEval for a grids with mod linear basis ansatzfunctions and a set of interactions that limit the subspaces that are included. More...

#include <OperationMultipleEvalInterModLinear.hpp>

Inheritance diagram for sgpp::base::OperationMultipleEvalInterModLinear:
sgpp::base::OperationMultipleEval

Public Member Functions

double getDuration ()
 
void mult (DataVector &alpha, DataVector &result) override
 Multiplication of \(B^T\) with vector \(\alpha\). More...
 
void multTranspose (DataVector &source, DataVector &result) override
 Multiplication of \(B\) with vector \(\alpha\). More...
 
 OperationMultipleEvalInterModLinear (Grid &grid, DataMatrix &dataset, std::vector< std::vector< size_t >> &interactions)
 Constructor. More...
 
 ~OperationMultipleEvalInterModLinear () override
 Destructor. More...
 
- 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 void prepare ()
 Used for kernel-specific setup like special data structures that are defined from the current state of the grid. More...
 
virtual ~OperationMultipleEval ()
 Destructor. More...
 

Protected Attributes

std::vector< std::vector< size_t > > interactions
 
GridStoragestorage
 Pointer to GridStorage object. More...
 
- Protected Attributes inherited from sgpp::base::OperationMultipleEval
DataMatrixdataset
 
Gridgrid
 
bool isPrepared
 

Detailed Description

This class implements OperationMultipleEval for a grids with mod linear basis ansatzfunctions and a set of interactions that limit the subspaces that are included.

The evaluation iterates over all allowed subspaces and only viewes ansatzfunctions of level > 1 since the level one ansatz function evaluates to 1

This Operation is more efficeint than the OperationMultipleEvalModLinear.

Constructor & Destructor Documentation

sgpp::base::OperationMultipleEvalInterModLinear::OperationMultipleEvalInterModLinear ( Grid grid,
DataMatrix dataset,
std::vector< std::vector< size_t >> &  interactions 
)
inline

Constructor.

Parameters
gridgrid
datasetthe dataset that should be evaluated
interactionsthe interactionterms that limit what subspaces are included

References interactions.

sgpp::base::OperationMultipleEvalInterModLinear::~OperationMultipleEvalInterModLinear ( )
inlineoverride

Destructor.

References alpha, mult(), and multTranspose().

Member Function Documentation

double sgpp::base::OperationMultipleEvalInterModLinear::getDuration ( )
inlinevirtual

Member Data Documentation

std::vector<std::vector<size_t> > sgpp::base::OperationMultipleEvalInterModLinear::interactions
protected
GridStorage& sgpp::base::OperationMultipleEvalInterModLinear::storage
protected

Pointer to GridStorage object.

Referenced by mult(), and multTranspose().


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