concepts::Function< F > Class Template Referenceabstract

Abstract class for a function. More...

#include <basis.hh>

Inheritance diagram for concepts::Function< F >:
concepts::OutputOperator concepts::SubVector< F >

Public Member Functions

virtual Function< F > & add (const Function< F > &fnc, F a)
 Adds a times fnc to this function. More...
 
uint dim () const
 Returns the dimension of the function. More...
 
template<class G >
 Function (const Space< G > &spc)
 Constructor. More...
 
 Function (const uint dim)
 
virtual F operator() (uint i) const =0
 Index operator. More...
 
virtual F & operator() (uint i)=0
 Index operator. More...
 
virtual Function< F > & operator*= (F a)
 Scaling operator. More...
 
virtual Function< F > & operator+= (const Function< F > &fnc)
 Addition operator. More...
 
virtual Function< F > & operator+= (F c)
 Addition operator. More...
 
virtual Function< F > & operator-= (const Function< F > &fnc)
 Subtraction operator. More...
 
virtual Function< F > & operator-= (F c)
 Subtraction operator. More...
 
virtual Function< F > & operator= (const Function< F > &fnc)=0
 Assignment operator. More...
 

Protected Member Functions

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

Protected Attributes

uint dim_
 Dimension of the function (or of the space the function is defined) More...
 

Detailed Description

template<class F>
class concepts::Function< F >

Abstract class for a function.

A function is always associated to a space which determines the dimension of the function.

Definition at line 21 of file basis.hh.

Constructor & Destructor Documentation

◆ Function() [1/2]

template<class F >
template<class G >
concepts::Function< F >::Function ( const Space< G > &  spc)
inline

Constructor.

Definition at line 25 of file basis.hh.

◆ Function() [2/2]

template<class F >
concepts::Function< F >::Function ( const uint  dim)
inline

Definition at line 26 of file basis.hh.

Member Function Documentation

◆ add()

template<class F >
virtual Function<F>& concepts::Function< F >::add ( const Function< F > &  fnc,
a 
)
virtual

Adds a times fnc to this function.

Reimplemented in concepts::SubVector< F >.

◆ dim()

template<class F >
uint concepts::Function< F >::dim ( ) const
inline

Returns the dimension of the function.

Definition at line 53 of file basis.hh.

◆ info()

template<class F >
virtual std::ostream& concepts::Function< F >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Reimplemented in concepts::SubVector< F >, concepts::ComplexFunction, concepts::ImagPart, concepts::RealPart, and concepts::CmplxPart.

◆ operator()() [1/2]

template<class F >
virtual F concepts::Function< F >::operator() ( uint  i) const
pure virtual

◆ operator()() [2/2]

template<class F >
virtual F& concepts::Function< F >::operator() ( uint  i)
pure virtual

◆ operator*=()

template<class F >
virtual Function<F>& concepts::Function< F >::operator*= ( a)
virtual

Scaling operator.

Reimplemented in concepts::SubVector< F >.

◆ operator+=() [1/2]

template<class F >
virtual Function<F>& concepts::Function< F >::operator+= ( const Function< F > &  fnc)
virtual

Addition operator.

Reimplemented in concepts::SubVector< F >.

◆ operator+=() [2/2]

template<class F >
virtual Function<F>& concepts::Function< F >::operator+= ( c)
virtual

Addition operator.

Reimplemented in concepts::SubVector< F >.

◆ operator-=() [1/2]

template<class F >
virtual Function<F>& concepts::Function< F >::operator-= ( const Function< F > &  fnc)
virtual

Subtraction operator.

Reimplemented in concepts::SubVector< F >.

◆ operator-=() [2/2]

template<class F >
virtual Function<F>& concepts::Function< F >::operator-= ( c)
virtual

Subtraction operator.

Reimplemented in concepts::SubVector< F >.

◆ operator=()

template<class F >
virtual Function<F>& concepts::Function< F >::operator= ( const Function< F > &  fnc)
pure virtual

Assignment operator.

Implemented in concepts::CmplxPart, concepts::SubVector< F >, and concepts::ComplexFunction.

Member Data Documentation

◆ dim_

template<class F >
uint concepts::Function< F >::dim_
protected

Dimension of the function (or of the space the function is defined)

Definition at line 57 of file basis.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