![]() |
SG++-Doxygen-Documentation
|
Class that implements the virtual class base::OperationMatrix for the application of classification for the Systemmatrix. More...
#include <DMSystemMatrix.hpp>
Public Member Functions | |
| DMSystemMatrix (base::Grid &grid, base::DataMatrix &trainData, std::shared_ptr< base::OperationMatrix > C, double lambdaRegression) | |
| Std-Constructor. More... | |
| virtual void | generateb (base::DataVector &classes, base::DataVector &b) |
| Generates the right hand side of the classification equation. More... | |
| virtual void | mult (base::DataVector &alpha, base::DataVector &result) |
| starts the Multiplication with the matrix More... | |
| virtual | ~DMSystemMatrix () |
| Std-Destructor. More... | |
Public Member Functions inherited from sgpp::datadriven::DMSystemMatrixBase | |
| DMSystemMatrixBase (base::DataMatrix &trainData, double lambda) | |
| Std-Constructor. More... | |
| virtual void | getTimers (double &timeMult, double &computeMult, double &timeMultTrans, double &computeMultTrans) |
| gets the timer's values by saving them into call by reference values More... | |
| virtual void | prepareGrid () |
| forward declaration More... | |
| virtual void | resetTimers () |
| resets all timers to 0 More... | |
| virtual | ~DMSystemMatrixBase () |
| Std-Destructor. More... | |
Public Member Functions inherited from sgpp::base::OperationMatrix | |
| OperationMatrix () | |
| Constructor. More... | |
| virtual | ~OperationMatrix () |
| Destructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from sgpp::datadriven::DMSystemMatrixBase | |
| double | completeTimeMult_ |
| time needed for Mult More... | |
| double | completeTimeMultTrans_ |
| time needed for Mult transposed More... | |
| double | computeTimeMult_ |
| time needed only for the computation of mult, interesting on accelerator boards More... | |
| double | computeTimeMultTrans_ |
| time needed only for the computation of mult transposed, interesting on accelerator boards More... | |
| base::DataMatrix | dataset_ |
| the dataset More... | |
| double | lambda_ |
| the lambda, the regularisation parameter More... | |
| base::SGppStopwatch * | myTimer_ |
| Stopwatch needed to determine the durations of mult and mult transposed. More... | |
Class that implements the virtual class base::OperationMatrix for the application of classification for the Systemmatrix.
| sgpp::datadriven::DMSystemMatrix::DMSystemMatrix | ( | base::Grid & | grid, |
| base::DataMatrix & | trainData, | ||
| std::shared_ptr< base::OperationMatrix > | C, | ||
| double | lambdaRegression | ||
| ) |
Std-Constructor.
| grid | reference to the sparse grid |
| trainData | reference to base::DataVector that contains the training data |
| C | the regression functional |
| lambdaRegression | the lambda, the regression parameter |
References sgpp::op_factory::createOperationMultipleEval(), and sgpp::datadriven::DMSystemMatrixBase::dataset_.
|
virtual |
Std-Destructor.
|
virtual |
Generates the right hand side of the classification equation.
| classes | the class information of the training data |
| b | reference to the vector that will contain the result of the matrix vector multiplication on the rhs |
Implements sgpp::datadriven::DMSystemMatrixBase.
References sgpp::op_factory::createOperationMultipleEval(), and sgpp::datadriven::DMSystemMatrixBase::dataset_.
|
virtual |
starts the Multiplication with the matrix
| alpha | DataVector that contains the ansatzfunctions' coefficients |
| result | DataVector into which the result of the Laplace operation is stored |
Implements sgpp::datadriven::DMSystemMatrixBase.
References sgpp::base::DataVector::axpy(), sgpp::op_factory::createOperationMultipleEval(), sgpp::datadriven::DMSystemMatrixBase::dataset_, sgpp::base::DataMatrix::getNrows(), sgpp::base::DataVector::getSize(), and sgpp::datadriven::DMSystemMatrixBase::lambda_.