concepts::Function< F > Class Template Referenceabstract
Abstract class for a function. More...
#include <basis.hh>
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.
Constructor & Destructor Documentation
◆ Function() [1/2]
|
inline |
◆ Function() [2/2]
|
inline |
Member Function Documentation
◆ add()
|
virtual |
Adds a
times fnc
to this function.
Reimplemented in concepts::SubVector< F >.
◆ dim()
|
inline |
◆ info()
|
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]
|
pure virtual |
Index operator.
Implemented in concepts::SubVector< F >, concepts::ComplexFunction, concepts::ImagPart, and concepts::RealPart.
◆ operator()() [2/2]
|
pure virtual |
Index operator.
Implemented in concepts::SubVector< F >, concepts::ComplexFunction, concepts::ImagPart, and concepts::RealPart.
◆ operator*=()
|
virtual |
Scaling operator.
Reimplemented in concepts::SubVector< F >.
◆ operator+=() [1/2]
|
virtual |
Addition operator.
Reimplemented in concepts::SubVector< F >.
◆ operator+=() [2/2]
|
virtual |
Addition operator.
Reimplemented in concepts::SubVector< F >.
◆ operator-=() [1/2]
|
virtual |
Subtraction operator.
Reimplemented in concepts::SubVector< F >.
◆ operator-=() [2/2]
|
virtual |
Subtraction operator.
Reimplemented in concepts::SubVector< F >.
◆ operator=()
|
pure virtual |
Assignment operator.
Implemented in concepts::CmplxPart, concepts::SubVector< F >, and concepts::ComplexFunction.
Member Data Documentation
◆ dim_
|
protected |
The documentation for this class was generated from the following file:
- function/basis.hh