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. | |
| uint | dim () const |
| Returns the dimension of the function. | |
| template<class G > | |
| Function (const Space< G > &spc) | |
| Constructor. | |
| Function (const uint dim) | |
| virtual F & | operator() (uint i)=0 |
| Index operator. | |
| virtual F | operator() (uint i) const =0 |
| Index operator. | |
| virtual Function< F > & | operator*= (F a) |
| Scaling operator. | |
| virtual Function< F > & | operator+= (F c) |
| Addition operator. | |
| virtual Function< F > & | operator+= (const Function< F > &fnc) |
| Addition operator. | |
| virtual Function< F > & | operator-= (const Function< F > &fnc) |
| Subtraction operator. | |
| virtual Function< F > & | operator-= (F c) |
| Subtraction operator. | |
| virtual Function< F > & | operator= (const Function< F > &fnc)=0 |
| Assignment operator. | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Protected Attributes | |
| const 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.
| concepts::Function< F >::Function | ( | const Space< G > & | spc | ) | [inline] |
| concepts::Function< F >::Function | ( | const uint | dim | ) | [inline] |
| virtual Function<F>& concepts::Function< F >::add | ( | const Function< F > & | fnc, |
| F | a | ||
| ) | [virtual] |
Adds a times fnc to this function.
Reimplemented in concepts::SubVector< F >, concepts::Vector< F >, concepts::Vector< concepts::Cmplx >, concepts::Vector< Cmplx >, concepts::Vector< G >, concepts::Vector< ScalarT >, and concepts::Vector< Real >.
| uint concepts::Function< F >::dim | ( | ) | const [inline] |
| virtual std::ostream& concepts::Function< F >::info | ( | std::ostream & | os | ) | const [protected, virtual] |
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< concepts::Cmplx >, concepts::Vector< Cmplx >, concepts::Vector< G >, concepts::Vector< ScalarT >, and concepts::Vector< Real >.
| virtual F& concepts::Function< F >::operator() | ( | uint | i | ) | [pure virtual] |
| virtual F concepts::Function< F >::operator() | ( | uint | i | ) | const [pure virtual] |
| virtual Function<F>& concepts::Function< F >::operator*= | ( | F | a | ) | [virtual] |
Scaling operator.
Reimplemented in concepts::SubVector< F >, concepts::Vector< F >, concepts::Vector< concepts::Cmplx >, concepts::Vector< Cmplx >, concepts::Vector< G >, concepts::Vector< ScalarT >, and concepts::Vector< Real >.
| virtual Function<F>& concepts::Function< F >::operator+= | ( | const Function< F > & | fnc | ) | [virtual] |
Addition operator.
Reimplemented in concepts::SubVector< F >, concepts::Vector< F >, concepts::Vector< concepts::Cmplx >, concepts::Vector< Cmplx >, concepts::Vector< G >, concepts::Vector< ScalarT >, and concepts::Vector< Real >.
| virtual Function<F>& concepts::Function< F >::operator+= | ( | F | c | ) | [virtual] |
Addition operator.
Reimplemented in concepts::SubVector< F >, concepts::Vector< F >, concepts::Vector< concepts::Cmplx >, concepts::Vector< Cmplx >, concepts::Vector< G >, concepts::Vector< ScalarT >, and concepts::Vector< Real >.
| virtual Function<F>& concepts::Function< F >::operator-= | ( | F | c | ) | [virtual] |
Subtraction operator.
Reimplemented in concepts::SubVector< F >, concepts::Vector< F >, concepts::Vector< concepts::Cmplx >, concepts::Vector< Cmplx >, concepts::Vector< G >, concepts::Vector< ScalarT >, and concepts::Vector< Real >.
| virtual Function<F>& concepts::Function< F >::operator-= | ( | const Function< F > & | fnc | ) | [virtual] |
Subtraction operator.
Reimplemented in concepts::SubVector< F >, concepts::Vector< F >, concepts::Vector< concepts::Cmplx >, concepts::Vector< Cmplx >, concepts::Vector< G >, concepts::Vector< ScalarT >, and concepts::Vector< Real >.
| virtual Function<F>& concepts::Function< F >::operator= | ( | const Function< F > & | fnc | ) | [pure virtual] |
Assignment operator.
Implemented in concepts::CmplxPart, concepts::ComplexFunction, concepts::SubVector< F >, concepts::Vector< F >, concepts::Vector< concepts::Cmplx >, concepts::Vector< Cmplx >, concepts::Vector< G >, concepts::Vector< ScalarT >, and concepts::Vector< Real >.
const uint concepts::Function< F >::dim_ [protected] |