SG++
sgpp::base::PrecisionConverter Class Reference

Copies data from DataVector objects into DataVectorSP objects and vice versa. More...

#include <PrecisionConverter.hpp>

Static Public Member Functions

static void convertDataMatrixSPToDataMatrix (const sgpp::base::DataMatrixSP &src, sgpp::base::DataMatrix &dest)
 Copies data from DataMatrixSP object into DataMatrix object. More...
 
static void convertDataMatrixToDataMatrixSP (const sgpp::base::DataMatrix &src, sgpp::base::DataMatrixSP &dest)
 Copies data from DataMatrix object into DataMatrixSP object. More...
 
static void convertDataVectorSPToDataVector (const sgpp::base::DataVectorSP &src, sgpp::base::DataVector &dest)
 Copies data from DataVectorSP object into DataVector object. More...
 
static void convertDataVectorToDataVectorSP (const sgpp::base::DataVector &src, sgpp::base::DataVectorSP &dest)
 Copies data from DataVector object into DataVectorSP object. More...
 

Detailed Description

Copies data from DataVector objects into DataVectorSP objects and vice versa.

Copies data from DataMatrix objects into DataMatrixSP objects and vice versa.

Member Function Documentation

void sgpp::base::PrecisionConverter::convertDataMatrixSPToDataMatrix ( const sgpp::base::DataMatrixSP src,
sgpp::base::DataMatrix dest 
)
static
void sgpp::base::PrecisionConverter::convertDataMatrixToDataMatrixSP ( const sgpp::base::DataMatrix src,
sgpp::base::DataMatrixSP dest 
)
static
void sgpp::base::PrecisionConverter::convertDataVectorSPToDataVector ( const sgpp::base::DataVectorSP src,
sgpp::base::DataVector dest 
)
static
void sgpp::base::PrecisionConverter::convertDataVectorToDataVectorSP ( const sgpp::base::DataVector src,
sgpp::base::DataVectorSP dest 
)
static

Copies data from DataVector object into DataVectorSP object.

Parameters
srcsource DataVector, double precision
destdestination DataVectorSP, single precision

References sgpp::base::DataVector::get(), sgpp::base::DataVector::getSize(), sgpp::base::DataVectorSP::getSize(), and sgpp::base::DataVectorSP::set().

Referenced by sgpp::datadriven::LearnerBaseSP::predict().


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