Go to the documentation of this file.
39 virtual std::ostream&
info(std::ostream& os)
const;
64 return std::real((*this->
fnc_)(i));
65 return std::real((*this->
cfnc_)(i));
68 virtual std::ostream&
info(std::ostream& os)
const;
86 return *((
Real*)&(*this->
fnc_)(i)+1);
91 return std::imag((*this->
fnc_)(i));
92 return std::imag((*this->
cfnc_)(i));
95 virtual std::ostream&
info(std::ostream& os)
const;
125 virtual std::ostream&
info(std::ostream& os)
const;
virtual Real operator()(uint i) const
Index operator.
RealPart(const Function< Cmplx > &fnc)
Constructor.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
#define conceptsException(exc)
Prepares an exception for throwing.
Function as real part of an complex function.
CmplxPart(Function< Cmplx > &fnc)
virtual Cmplx operator()(uint i) const
Index operator.
Abstract class for a function.
#define conceptsAssert(cond, exc)
Assert that a certain condition is fulfilled.
virtual Real & operator()(uint i)
Index operator.
virtual Function< Real > & operator=(const Function< Real > &fnc)
Assignment operator.
ComplexFunction(const Function< Real > &fnc)
Constructor.
virtual Real & operator()(uint i)
Index operator.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual Cmplx & operator()(uint i)
Index operator.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Exception class for assertions.
RealPart(Function< Cmplx > &fnc)
const Function< Cmplx > * cfnc_
virtual Function< Cmplx > & operator=(const Function< Cmplx > &fnc)
Assignment operator.
std::complex< Real > Cmplx
Type for a complex number. It also depends on the setting of Real.
ImagPart(Function< Cmplx > &fnc)
Complex function based on a real function (casting).
const Function< Real > & cfnc_
uint dim() const
Returns the dimension of the function.
Abstract class for a function, which is one part of an complex function.
Exception class to express a missing feature.
Function as imaginary part of an complex function.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
ImagPart(const Function< Cmplx > &fnc)
Constructor.
virtual Real operator()(uint i) const
Index operator.
CmplxPart(const Function< Cmplx > &fnc)
Constructor.
double Real
Type normally used for a floating point number.
Basic namespace for Concepts-2.