#include <sampled_mapping.h>
Public Member Functions | |
| SampledMapping () | |
| SampledMapping (const SampledMapping< DIM > &sm) | |
| SampledMapping (const Grid< DIM > &grid) | |
| SampledMapping (const Grid< DIM > &grid, const Array1D< C > &values) | |
| SampledMapping (const Grid< DIM > &grid, const Function< DIM > &f) | |
| SampledMapping (const MultiIndex< int, DIM > &a, const MultiIndex< int, DIM > &b, const InfiniteVector< C, MultiIndex< int, DIM > > &values, const int resolution) | |
| SampledMapping (const Point< DIM, C > &a, const Point< DIM, C > &b, const FixedArray1D< Array1D< C >, DIM > &values) | |
| SampledMapping (const Chart< DIM > &ch, const FixedArray1D< Array1D< C >, DIM > &values, const unsigned int resolution) | |
| SampledMapping (const Chart< DIM > &ch, const unsigned int resolution) | |
| SampledMapping< DIM, C > & | operator= (const SampledMapping< DIM, C > &sm) |
| void | add (const SampledMapping< DIM, C > &s) |
| void | add (const C alpha, const SampledMapping< DIM, C > &s) |
| void | mult (const C alpha) |
| void | matlab_output (std::ostream &os) const |
Abstract base class for a mapping from R^n to R, represented by finite many samples on a rectangular grid (Matlab style). Meaningful values for n are n=1 and n=2 so far (see specializations).
| MathTL::SampledMapping< DIM, C >::SampledMapping | ( | ) | [inline] |
default constructor, yields empty mapping
| MathTL::SampledMapping< DIM, C >::SampledMapping | ( | const SampledMapping< DIM > & | sm | ) |
copy constructor
| MathTL::SampledMapping< DIM, C >::SampledMapping | ( | const Grid< DIM > & | grid | ) |
constructor from a given grid, yields zero function
| MathTL::SampledMapping< DIM, C >::SampledMapping | ( | const Grid< DIM > & | grid, |
| const Array1D< C > & | values | ||
| ) |
constructor from a given grid and given values
| MathTL::SampledMapping< DIM, C >::SampledMapping | ( | const Grid< DIM > & | grid, |
| const Function< DIM > & | f | ||
| ) |
constructor from a fixed grid and a Function object
| MathTL::SampledMapping< DIM, C >::SampledMapping | ( | const MultiIndex< int, DIM > & | a, |
| const MultiIndex< int, DIM > & | b, | ||
| const InfiniteVector< C, MultiIndex< int, DIM > > & | values, | ||
| const int | resolution | ||
| ) |
constructor from given values on 2^{-resolution} Z^d, clipped to the cuboid <a,b> in Z^d
| MathTL::SampledMapping< DIM, C >::SampledMapping | ( | const Point< DIM, C > & | a, |
| const Point< DIM, C > & | b, | ||
| const FixedArray1D< Array1D< C >, DIM > & | values | ||
| ) |
constructor from given tensor product values on a uniform subgrid of the cuboid <a,b>, the number of grid points in the i-th direction is taken from the length of the i-th component array of 'values'
| MathTL::SampledMapping< DIM, C >::SampledMapping | ( | const Chart< DIM > & | ch, |
| const FixedArray1D< Array1D< C >, DIM > & | values, | ||
| const unsigned int | resolution | ||
| ) |
a dyadic subgrid of the hypercube is mapped by a chart 'ch'. so we end up with a dyadic subgrid of a mapped hypercube. 'values' are the corresponding function values.
| MathTL::SampledMapping< DIM, C >::SampledMapping | ( | const Chart< DIM > & | ch, |
| const unsigned int | resolution | ||
| ) |
a dyadic subgrid of the hypercube is mapped by a chart 'ch'. so we end up with a dyadic subgrid of a mapped hypercube. the function values are initialized with zero.
| void MathTL::SampledMapping< DIM, C >::add | ( | const SampledMapping< DIM, C > & | s | ) |
pointwise in-place summation *this += s of two sampled mappings over the same grid
| void MathTL::SampledMapping< DIM, C >::add | ( | const C | alpha, |
| const SampledMapping< DIM, C > & | s | ||
| ) |
pointwise in-place summation *this += alpha * s of two sampled mappings over the same grid
| void MathTL::SampledMapping< DIM, C >::matlab_output | ( | std::ostream & | os | ) | const |
Matlab output of the sampled mapping onto a stream
Reimplemented from MathTL::Grid< DIM >.
| void MathTL::SampledMapping< DIM, C >::mult | ( | const C | alpha | ) |
pointwise in-place multiplication *this *= alpha
| SampledMapping<DIM,C>& MathTL::SampledMapping< DIM, C >::operator= | ( | const SampledMapping< DIM, C > & | sm | ) |
assignment operator
1.7.6.1