MathTL
 All Classes Functions Variables Typedefs Enumerations
Public Member Functions
MathTL::SampledMapping< DIM, C > Class Template Reference

#include <sampled_mapping.h>

Inheritance diagram for MathTL::SampledMapping< DIM, C >:
MathTL::Grid< DIM >

List of all members.

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

Detailed Description

template<unsigned int DIM, class C = double>
class MathTL::SampledMapping< DIM, C >

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


Constructor & Destructor Documentation

template<unsigned int DIM, class C = double>
MathTL::SampledMapping< DIM, C >::SampledMapping ( ) [inline]

default constructor, yields empty mapping

template<unsigned int DIM, class C = double>
MathTL::SampledMapping< DIM, C >::SampledMapping ( const SampledMapping< DIM > &  sm)

copy constructor

template<unsigned int DIM, class C = double>
MathTL::SampledMapping< DIM, C >::SampledMapping ( const Grid< DIM > &  grid)

constructor from a given grid, yields zero function

template<unsigned int DIM, class C = double>
MathTL::SampledMapping< DIM, C >::SampledMapping ( const Grid< DIM > &  grid,
const Array1D< C > &  values 
)

constructor from a given grid and given values

template<unsigned int DIM, class C = double>
MathTL::SampledMapping< DIM, C >::SampledMapping ( const Grid< DIM > &  grid,
const Function< DIM > &  f 
)

constructor from a fixed grid and a Function object

template<unsigned int DIM, class C = double>
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

template<unsigned int DIM, class C = double>
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'

template<unsigned int DIM, class C = double>
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.

template<unsigned int DIM, class C = double>
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.


Member Function Documentation

template<unsigned int DIM, class C = double>
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

template<unsigned int DIM, class C = double>
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

template<unsigned int DIM, class C = double>
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 >.

template<unsigned int DIM, class C = double>
void MathTL::SampledMapping< DIM, C >::mult ( const C  alpha)

pointwise in-place multiplication *this *= alpha

template<unsigned int DIM, class C = double>
SampledMapping<DIM,C>& MathTL::SampledMapping< DIM, C >::operator= ( const SampledMapping< DIM, C > &  sm)

assignment operator


The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Enumerations