concepts::FrmE_PointToMapping< dim, F, G > Class Template Referenceabstract

Class which maps an element formula of type Point (a vector) to one of type Mapping (a matrix). More...

#include <frmE_matrix.hh>

Inheritance diagram for concepts::FrmE_PointToMapping< dim, F, G >:
concepts::ElementFormula< Mapping< F, dim >, typename Realtype< F >::type > concepts::Cloneable concepts::OutputOperator

Public Types

typedef Mapping< F, dim > value_type
 

Public Member Functions

virtual FrmE_PointToMapping< dim, F, G > * clone () const
 Virtual constructor. More...
 
virtual ElementFormula< Mapping< F, dim >, typename Realtype< F >::type > * clone () const=0
 Virtual copy constructor. More...
 
 FrmE_PointToMapping (const ElementFormulaContainer< Point< F, dim *dim >, G > &frm, bool transpose=false)
 Constructor. More...
 
virtual Mapping< F, dim > operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const
 
virtual Mapping< F, dim > operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const
 
virtual Mapping< F, dim > operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const
 
virtual Mapping< F, dim > operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual Mapping< F, dim > operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual Mapping< F, dim > operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual ~FrmE_PointToMapping ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Private Member Functions

template<class H >
Mapping< F, dim > compute_ (const ElementWithCell< G > &elm, const H &p, const Real t=0.0) const
 

Private Attributes

ElementFormulaContainer< Point< F, dim *dim >, G > frm_
 The original formula. More...
 
bool transpose_
 The flag if the transposed is to be taken. More...
 

Detailed Description

template<int dim, class F, class G = typename Realtype<F>::type>
class concepts::FrmE_PointToMapping< dim, F, G >

Class which maps an element formula of type Point (a vector) to one of type Mapping (a matrix).

The order of the entries if in the mapping (matrix) is first along the rows and then along the columns. If $\underline{a}$ is the vector of length $n^2$, then the matrix is given by

\[A_{i,j} = a_{i+n*j}, 0 \leq i,j < n.\]

If the transpose flag is set to true, the order is first along the columns.

Author
Kersten Schmidt, 2014

Definition at line 34 of file frmE_matrix.hh.

Member Typedef Documentation

◆ value_type

typedef Mapping< F, dim > concepts::ElementFormula< Mapping< F, dim > , typename Realtype< F >::type >::value_type
inherited

Definition at line 37 of file elementFormula.hh.

Constructor & Destructor Documentation

◆ FrmE_PointToMapping()

template<int dim, class F , class G = typename Realtype<F>::type>
concepts::FrmE_PointToMapping< dim, F, G >::FrmE_PointToMapping ( const ElementFormulaContainer< Point< F, dim *dim >, G > &  frm,
bool  transpose = false 
)
inline

Constructor.

Definition at line 37 of file frmE_matrix.hh.

◆ ~FrmE_PointToMapping()

template<int dim, class F , class G = typename Realtype<F>::type>
virtual concepts::FrmE_PointToMapping< dim, F, G >::~FrmE_PointToMapping ( )
inlinevirtual

Definition at line 43 of file frmE_matrix.hh.

Member Function Documentation

◆ clone() [1/2]

template<int dim, class F , class G = typename Realtype<F>::type>
virtual FrmE_PointToMapping<dim,F,G>* concepts::FrmE_PointToMapping< dim, F, G >::clone ( ) const
inlinevirtual

Virtual constructor.

Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.

Implements concepts::Cloneable.

Definition at line 63 of file frmE_matrix.hh.

◆ clone() [2/2]

virtual ElementFormula<Mapping< F, dim > ,typename Realtype< F >::type >* concepts::ElementFormula< Mapping< F, dim > , typename Realtype< F >::type >::clone ( ) const
pure virtualinherited

Virtual copy constructor.

◆ compute_()

template<int dim, class F , class G = typename Realtype<F>::type>
template<class H >
Mapping<F,dim> concepts::FrmE_PointToMapping< dim, F, G >::compute_ ( const ElementWithCell< G > &  elm,
const H &  p,
const Real  t = 0.0 
) const
inlineprivate

Definition at line 78 of file frmE_matrix.hh.

◆ info()

template<int dim, class F , class G = typename Realtype<F>::type>
virtual std::ostream& concepts::FrmE_PointToMapping< dim, F, G >::info ( std::ostream &  os) const
inlineprotectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Definition at line 68 of file frmE_matrix.hh.

◆ operator()() [1/6]

template<int dim, class F , class G = typename Realtype<F>::type>
virtual Mapping<F,dim> concepts::FrmE_PointToMapping< dim, F, G >::operator() ( const ElementWithCell< G > &  elm,
const Real  p,
const Real  t = 0.0 
) const
inlinevirtual

Definition at line 45 of file frmE_matrix.hh.

◆ operator()() [2/6]

template<int dim, class F , class G = typename Realtype<F>::type>
virtual Mapping<F,dim> concepts::FrmE_PointToMapping< dim, F, G >::operator() ( const ElementWithCell< G > &  elm,
const Real2d p,
const Real  t = 0.0 
) const
inlinevirtual

Definition at line 51 of file frmE_matrix.hh.

◆ operator()() [3/6]

template<int dim, class F , class G = typename Realtype<F>::type>
virtual Mapping<F,dim> concepts::FrmE_PointToMapping< dim, F, G >::operator() ( const ElementWithCell< G > &  elm,
const Real3d p,
const Real  t = 0.0 
) const
inlinevirtual

Definition at line 57 of file frmE_matrix.hh.

◆ operator()() [4/6]

virtual Mapping< F, dim > concepts::ElementFormula< Mapping< F, dim > , typename Realtype< F >::type >::operator() ( const ElementWithCell< G > &  elm,
const Real  p,
const Real  t = 0.0 
) const
pure virtualinherited

Evaluates the formula.

Parameters
elmElement
pPoint in space in local element coordinates
tPoint in time

◆ operator()() [5/6]

virtual Mapping< F, dim > concepts::ElementFormula< Mapping< F, dim > , typename Realtype< F >::type >::operator() ( const ElementWithCell< G > &  elm,
const Real2d p,
const Real  t = 0.0 
) const
pure virtualinherited

Evaluates the formula.

Parameters
elmElement
pPoint in space in local element coordinates
tPoint in time

◆ operator()() [6/6]

virtual Mapping< F, dim > concepts::ElementFormula< Mapping< F, dim > , typename Realtype< F >::type >::operator() ( const ElementWithCell< G > &  elm,
const Real3d p,
const Real  t = 0.0 
) const
pure virtualinherited

Evaluates the formula.

Parameters
elmElement
pPoint in space in local element coordinates
tPoint in time

Member Data Documentation

◆ frm_

template<int dim, class F , class G = typename Realtype<F>::type>
ElementFormulaContainer<Point<F,dim*dim>,G> concepts::FrmE_PointToMapping< dim, F, G >::frm_
private

The original formula.

Definition at line 73 of file frmE_matrix.hh.

◆ transpose_

template<int dim, class F , class G = typename Realtype<F>::type>
bool concepts::FrmE_PointToMapping< dim, F, G >::transpose_
private

The flag if the transposed is to be taken.

Definition at line 75 of file frmE_matrix.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich