Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::Squared< F, G > Class Template Reference

#include <function.hh>

Inheritance diagram for concepts::Squared< F, G >:
concepts::ElementFunction< F, G > concepts::OutputOperator

Public Member Functions

 Squared (ElementFunction< F, G > &fun)
 Constructor.
 
virtual uint n () const
 Number of components.
 
virtual void operator() (const Element< G > &elm, const Array< F > &coeff, Array< F > &val, const uint *i) const
 
virtual void operator() (const Element< G > &elm, const uint *j, Array< F > &val, const uint *i) const
 
virtual void operator() (const Element< G > &elm, const Array< F > &coeff, Array< F > &val, const Real p, const Real t=0.0) const
 
virtual void operator() (const Element< G > &elm, const Array< F > &coeff, Array< F > &val, const Real2d &p, const Real t=0.0) const
 
virtual void operator() (const Element< G > &elm, const Array< F > &coeff, Array< F > &val, const Real3d &p, const Real t=0.0) const
 
virtual Squared< F, G > * clone () const
 

Protected Member Functions

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

Detailed Description

template<class F, class G = typename Realtype<F>::type>
class concepts::Squared< F, G >

The square of a element function (componentwise)

Author
Kersten Schmidt, 2004

Definition at line 78 of file function.hh.

Constructor & Destructor Documentation

◆ Squared()

template<class F , class G = typename Realtype<F>::type>
concepts::Squared< F, G >::Squared ( ElementFunction< F, G > &  fun)
inline

Constructor.

Definition at line 81 of file function.hh.

◆ ~Squared()

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

Definition at line 82 of file function.hh.

Member Function Documentation

◆ clone()

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

Implements concepts::ElementFunction< F, G >.

Definition at line 99 of file function.hh.

◆ info()

template<class F , class G = typename Realtype<F>::type>
virtual std::ostream & concepts::Squared< F, G >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::ElementFunction< F, G >.

◆ n()

template<class F , class G = typename Realtype<F>::type>
virtual uint concepts::Squared< F, G >::n ( ) const
inlinevirtual

Number of components.

Implements concepts::ElementFunction< F, G >.

Definition at line 83 of file function.hh.

◆ operator()() [1/5]

template<class F , class G = typename Realtype<F>::type>
virtual void concepts::Squared< F, G >::operator() ( const Element< G > &  elm,
const Array< F > &  coeff,
Array< F > &  val,
const Real  p,
const Real  t = 0.0 
) const
virtual

Evaluates the function value in an arbitrary point p of physical space

Parameters
elmElement
coeffCoefficients of local shape functions
valFunction value
pPoint in space in local element coordinates
tPoint in time

Implements concepts::ElementFunction< F, G >.

◆ operator()() [2/5]

template<class F , class G = typename Realtype<F>::type>
virtual void concepts::Squared< F, G >::operator() ( const Element< G > &  elm,
const Array< F > &  coeff,
Array< F > &  val,
const Real2d p,
const Real  t = 0.0 
) const
virtual

◆ operator()() [3/5]

template<class F , class G = typename Realtype<F>::type>
virtual void concepts::Squared< F, G >::operator() ( const Element< G > &  elm,
const Array< F > &  coeff,
Array< F > &  val,
const Real3d p,
const Real  t = 0.0 
) const
virtual

◆ operator()() [4/5]

template<class F , class G = typename Realtype<F>::type>
virtual void concepts::Squared< F, G >::operator() ( const Element< G > &  elm,
const Array< F > &  coeff,
Array< F > &  val,
const uint i 
) const
virtual

Evaluates the function on precalculated quadrature points.

Parameters
elmElement
coeffCoefficients of local shape functions
valFunction value
imulti-index of the quadrature point

Implements concepts::ElementFunction< F, G >.

◆ operator()() [5/5]

template<class F , class G = typename Realtype<F>::type>
virtual void concepts::Squared< F, G >::operator() ( const Element< G > &  elm,
const uint j,
Array< F > &  val,
const uint i 
) const
virtual

Evaluates the given function on a specific shape function j (on precalculated quadrature points).

Parameters
elmElement
jmulti-index of a shapefunction
valFunction value
imulti-index of the quadrature point

Implements concepts::ElementFunction< F, G >.


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