#include <basis.hh>
Public Member Functions | |
template<class G > | |
Function (const Space< G > &spc) | |
Constructor. | |
Function (const uint dim) | |
virtual Function< F > & | operator= (const Function< F > &fnc)=0 |
Assignment operator. | |
virtual F & | operator() (uint i)=0 |
Index operator. | |
virtual F | operator() (uint i) const =0 |
Index operator. | |
virtual Function< F > & | operator+= (const Function< F > &fnc) |
Addition operator. | |
virtual Function< F > & | operator+= (F c) |
Addition operator. | |
virtual Function< F > & | operator-= (const Function< F > &fnc) |
Subtraction operator. | |
virtual Function< F > & | operator-= (F c) |
Subtraction operator. | |
virtual Function< F > & | operator*= (F a) |
Scaling operator. | |
virtual Function< F > & | add (const Function< F > &fnc, F a) |
Adds a times fnc to this function. | |
uint | dim () const |
Returns the dimension of the function. | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
Protected Attributes | |
uint | dim_ |
Dimension of the function (or of the space the function is defined) | |
Abstract class for a function. A function is always associated to a space which determines the dimension of the function.
|
inline |
|
inline |
|
virtual |
Adds a
times fnc
to this function.
Reimplemented in concepts::SubVector< F >, and concepts::Vector< F >.
|
inline |
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in concepts::CmplxPart, concepts::RealPart, concepts::ImagPart, concepts::ComplexFunction, concepts::SubVector< F >, concepts::Vector< F >, concepts::Vector< Cmplx >, concepts::Vector< concepts::Real >, concepts::Vector< G >, concepts::Vector< Real >, and concepts::Vector< ScalarT >.
|
pure virtual |
|
pure virtual |
|
virtual |
Scaling operator.
Reimplemented in concepts::SubVector< F >, and concepts::Vector< F >.
|
virtual |
Addition operator.
Reimplemented in concepts::SubVector< F >, and concepts::Vector< F >.
|
virtual |
Addition operator.
Reimplemented in concepts::SubVector< F >, and concepts::Vector< F >.
|
virtual |
Subtraction operator.
Reimplemented in concepts::SubVector< F >, and concepts::Vector< F >.
|
virtual |
Subtraction operator.
Reimplemented in concepts::SubVector< F >, and concepts::Vector< F >.
|
pure virtual |
Assignment operator.
Implemented in concepts::ComplexFunction, concepts::SubVector< F >, concepts::Vector< F >, and concepts::CmplxPart.
|
protected |