#include <complex.hh>
Public Member Functions | |
CmplxPart (const Function< Cmplx > &fnc) | |
Constructor. | |
CmplxPart (Function< Cmplx > &fnc) | |
virtual Function< Real > & | operator= (const Function< Real > &fnc) |
Assignment operator. | |
virtual Real & | operator() (uint i)=0 |
Index operator. | |
virtual Real | operator() (uint i) const=0 |
Index operator. | |
virtual Function< Real > & | operator+= (const Function< Real > &fnc) |
Addition operator. | |
virtual Function< Real > & | operator+= (Real c) |
Addition operator. | |
virtual Function< Real > & | operator-= (const Function< Real > &fnc) |
Subtraction operator. | |
virtual Function< Real > & | operator-= (Real c) |
Subtraction operator. | |
virtual Function< Real > & | operator*= (Real a) |
Scaling operator. | |
virtual Function< Real > & | add (const Function< Real > &fnc, Real 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 | |
const Function< Cmplx > * | cfnc_ |
Function< Cmplx > * | fnc_ |
uint | dim_ |
Dimension of the function (or of the space the function is defined) | |
Abstract class for a function, which is one part of an complex function.
Derived in RealPart and ImagPart.
Definition at line 25 of file complex.hh.
Constructor.
Definition at line 28 of file complex.hh.
Definition at line 30 of file complex.hh.
|
inlineinherited |
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Function< Real >.
Reimplemented in concepts::RealPart, and concepts::ImagPart.
|
pure virtualinherited |
Index operator.
Implemented in concepts::RealPart, and concepts::ImagPart.
|
pure virtualinherited |
Index operator.
Implemented in concepts::RealPart, and concepts::ImagPart.
|
inlinevirtual |
Assignment operator.
Implements concepts::Function< Real >.
Definition at line 34 of file complex.hh.
Definition at line 40 of file complex.hh.
|
protectedinherited |
Definition at line 41 of file complex.hh.