SG++
sgpp::combigrid::FloatTensorVector Class Reference

#include <FloatTensorVector.hpp>

Public Member Functions

void add (FloatTensorVector const &other)
 
FloatScalarVectorat (MultiIndex i)
 Returns a reference to the i-th FloatScalarVector stored. More...
 
void componentwiseMult (FloatTensorVector const &other)
 
 FloatTensorVector (std::shared_ptr< TreeStorage< FloatScalarVector >> const &values)
 
 FloatTensorVector (size_t d=0)
 
 FloatTensorVector (FloatScalarVector scalar)
 
 FloatTensorVector (FloatTensorVector const &other)
 
FloatScalarVector get (MultiIndex i)
 This function can be called from python because it does not return a reference. More...
 
std::shared_ptr< TreeStorage< FloatScalarVector > > const & getValues () const
 
double norm () const
 
FloatTensorVectoroperator= (FloatTensorVector const &other)
 
FloatScalarVectoroperator[] (MultiIndex i)
 Returns a reference to the i-th FloatScalarVector stored. More...
 
FloatScalarVector operator[] (size_t i)
 This is an auxiliary function needed in FullGridQuadraticSummationStrategy. More...
 
void scalarMult (double const &factor)
 
void sub (FloatTensorVector const &other)
 

Static Public Member Functions

static FloatTensorVector one ()
 
static FloatTensorVector zero ()
 

Constructor & Destructor Documentation

sgpp::combigrid::FloatTensorVector::FloatTensorVector ( std::shared_ptr< TreeStorage< FloatScalarVector >> const &  values)
explicit

Referenced by one(), and zero().

sgpp::combigrid::FloatTensorVector::FloatTensorVector ( size_t  d = 0)
explicit
sgpp::combigrid::FloatTensorVector::FloatTensorVector ( FloatScalarVector  scalar)
explicit
sgpp::combigrid::FloatTensorVector::FloatTensorVector ( FloatTensorVector const &  other)

Member Function Documentation

void sgpp::combigrid::FloatTensorVector::add ( FloatTensorVector const &  other)

Referenced by getValues().

FloatScalarVector & sgpp::combigrid::FloatTensorVector::at ( MultiIndex  i)

Returns a reference to the i-th FloatScalarVector stored.

If there are fewer elements stored, the number of elements is extended via ensureMinimumSize().

Referenced by getValues().

void sgpp::combigrid::FloatTensorVector::componentwiseMult ( FloatTensorVector const &  other)
FloatScalarVector sgpp::combigrid::FloatTensorVector::get ( MultiIndex  i)

This function can be called from python because it does not return a reference.

Referenced by sgpp::combigrid::PolynomialChaosExpansion::mean(), and sgpp::combigrid::PolynomialChaosExpansion::variance().

double sgpp::combigrid::FloatTensorVector::norm ( ) const

Referenced by getValues().

static FloatTensorVector sgpp::combigrid::FloatTensorVector::one ( )
inlinestatic

References FloatTensorVector().

FloatTensorVector & sgpp::combigrid::FloatTensorVector::operator= ( FloatTensorVector const &  other)
FloatScalarVector & sgpp::combigrid::FloatTensorVector::operator[] ( MultiIndex  i)

Returns a reference to the i-th FloatScalarVector stored.

If there are fewer elements stored, the number of elements is extended via ensureMinimumSize().

Referenced by getValues().

FloatScalarVector sgpp::combigrid::FloatTensorVector::operator[] ( size_t  i)

This is an auxiliary function needed in FullGridQuadraticSummationStrategy.

References sgpp::combigrid::FloatScalarVector::zero().

void sgpp::combigrid::FloatTensorVector::scalarMult ( double const &  factor)

Referenced by componentwiseMult(), and getValues().

void sgpp::combigrid::FloatTensorVector::sub ( FloatTensorVector const &  other)

Referenced by getValues().

static FloatTensorVector sgpp::combigrid::FloatTensorVector::zero ( )
inlinestatic

References FloatTensorVector().


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