SG++-Doxygen-Documentation
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

◆ FloatTensorVector() [1/4]

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

Referenced by one(), and zero().

◆ FloatTensorVector() [2/4]

sgpp::combigrid::FloatTensorVector::FloatTensorVector ( size_t  d = 0)
explicit

◆ FloatTensorVector() [3/4]

sgpp::combigrid::FloatTensorVector::FloatTensorVector ( FloatScalarVector  scalar)
explicit

◆ FloatTensorVector() [4/4]

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

Member Function Documentation

◆ add()

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

References python.statsfileInfo::i.

Referenced by getValues().

◆ at()

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().

◆ componentwiseMult()

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

◆ get()

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().

◆ getValues()

◆ norm()

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

Referenced by getValues().

◆ one()

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

References FloatTensorVector().

◆ operator=()

FloatTensorVector & sgpp::combigrid::FloatTensorVector::operator= ( FloatTensorVector const &  other)

◆ operator[]() [1/2]

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().

◆ operator[]() [2/2]

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

This is an auxiliary function needed in FullGridQuadraticSummationStrategy.

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

◆ scalarMult()

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

Referenced by componentwiseMult(), and getValues().

◆ sub()

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

References python.statsfileInfo::i.

Referenced by getValues().

◆ zero()

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

References FloatTensorVector().


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