MathTL
 All Classes Functions Variables Typedefs Enumerations
Public Member Functions | Protected Attributes
MathTL::SampledMapping< 2, C > Class Template Reference
Inheritance diagram for MathTL::SampledMapping< 2, C >:
MathTL::Grid< 2 >

List of all members.

Public Member Functions

 SampledMapping ()
 SampledMapping (const SampledMapping< 2, C > &sm)
 SampledMapping (const Grid< 2 > &grid)
 SampledMapping (const Grid< 2 > &grid, const Matrix< C > &values)
 SampledMapping (const Grid< 2 > &grid, const Function< 2, C > &f)
 SampledMapping (const Grid< 2 > &grid, Function< 1, C > &f)
 SampledMapping (const MultiIndex< int, 2 > &a, const MultiIndex< int, 2 > &b, const InfiniteVector< C, MultiIndex< int, 2 > > &values, const int resolution)
 SampledMapping (const Point< 2, C > &a, const Point< 2, C > &b, const FixedArray1D< Array1D< C >, 2 > &values)
 SampledMapping (const Chart< 2 > &ch, const FixedArray1D< Array1D< C >, 2 > &values, const unsigned int resolution)
 SampledMapping (const Chart< 2 > &ch, const unsigned int resolution)
SampledMapping< 2, C > & operator= (const SampledMapping< 2, C > &sm)
void add (const SampledMapping< 2, C > &s)
void add (const C alpha, const SampledMapping< 2, C > &s)
void mult (const C alpha)
const Matrix< C > & values () const
void matlab_output (std::ostream &os) const
void gnuplot_output (std::ostream &os) const
void octave_output (std::ostream &os) const

Protected Attributes

Matrix< C > values_

template<class C>
class MathTL::SampledMapping< 2, C >


Constructor & Destructor Documentation

template<class C >
MathTL::SampledMapping< 2, C >::SampledMapping ( )

default constructor, yields empty mapping

template<class C >
MathTL::SampledMapping< 2, C >::SampledMapping ( const SampledMapping< 2, C > &  sm)

copy constructor

template<class C >
MathTL::SampledMapping< 2, C >::SampledMapping ( const Grid< 2 > &  grid)

constructor from a given grid, yields zero function

template<class C >
MathTL::SampledMapping< 2, C >::SampledMapping ( const Grid< 2 > &  grid,
const Matrix< C > &  values 
)

constructor from a given grid and given values (columns of the matrix correspond to the x grid)

template<class C >
MathTL::SampledMapping< 2, C >::SampledMapping ( const Grid< 2 > &  grid,
const Function< 2, C > &  f 
)

constructor from a fixed grid and a Function object

template<class C >
MathTL::SampledMapping< 2, C >::SampledMapping ( const Grid< 2 > &  grid,
Function< 1, C > &  f 
)

constructor from a fixed grid and a Function object, here we take the time variable as y-axis (note that the parameter f is not const due to the set_time() calls)

template<class C >
MathTL::SampledMapping< 2, C >::SampledMapping ( const MultiIndex< int, 2 > &  a,
const MultiIndex< int, 2 > &  b,
const InfiniteVector< C, MultiIndex< int, 2 > > &  values,
const int  resolution 
)

constructor from given values on 2^{-resolution} Z^2, clipped to [a,b]^2 (CURRENTLY NOT IMPLEMENTED!)

template<class C >
MathTL::SampledMapping< 2, C >::SampledMapping ( const Point< 2, C > &  a,
const Point< 2, C > &  b,
const FixedArray1D< Array1D< C >, 2 > &  values 
)

constructor from given tensor product values on a uniform subgrid of the cuboid <a,b>, a,b integer vectors, the number of grid points in the i-th direction is taken from the length of the i-th component array of 'values'

template<class C >
MathTL::SampledMapping< 2, C >::SampledMapping ( const Chart< 2 > &  ch,
const FixedArray1D< Array1D< C >, 2 > &  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<class C >
MathTL::SampledMapping< 2, C >::SampledMapping ( const Chart< 2 > &  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<class C >
void MathTL::SampledMapping< 2, C >::add ( const SampledMapping< 2, C > &  s)

pointwise in-place summation *this += s of two sampled mappings over the same grid

template<class C >
void MathTL::SampledMapping< 2, C >::add ( const C  alpha,
const SampledMapping< 2, C > &  s 
)

pointwise in-place summation *this += alpha * s of two sampled mappings over the same grid

template<class C >
void MathTL::SampledMapping< 2, C >::gnuplot_output ( std::ostream &  os) const

Matlab output of the sampled mapping onto a stream

template<class C >
void MathTL::SampledMapping< 2, C >::matlab_output ( std::ostream &  os) const

Matlab output of the sampled mapping onto a stream

Reimplemented from MathTL::Grid< 2 >.

template<class C >
void MathTL::SampledMapping< 2, C >::mult ( const C  alpha)

pointwise in-place multiplication *this *= alpha

template<class C >
void MathTL::SampledMapping< 2, C >::octave_output ( std::ostream &  os) const

Octave-compatible output of the sampled mapping onto a stream

Reimplemented from MathTL::Grid< 2 >.

template<class C >
SampledMapping< 2, C > & MathTL::SampledMapping< 2, C >::operator= ( const SampledMapping< 2, C > &  sm)

assignment operator

template<class C >
const Matrix<C>& MathTL::SampledMapping< 2, C >::values ( ) const [inline]

reading access to the function values


Member Data Documentation

template<class C >
Matrix<C> MathTL::SampledMapping< 2, C >::values_ [protected]

internal storage for the function values


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