Complex function based on a real function (casting). More...

#include <complex.hh>

Inheritance diagram for concepts::ComplexFunction:
concepts::Function< Cmplx > concepts::OutputOperator

Public Member Functions

virtual Function< Cmplx > & add (const Function< Cmplx > &fnc, Cmplx a)
 Adds a times fnc to this function. More...
 
 ComplexFunction (const Function< Real > &fnc)
 Constructor. More...
 
uint dim () const
 Returns the dimension of the function. More...
 
virtual Cmplxoperator() (uint i)
 Index operator. More...
 
virtual Cmplx operator() (uint i) const
 Index operator. More...
 
virtual Function< Cmplx > & operator*= (Cmplx a)
 Scaling operator. More...
 
virtual Function< Cmplx > & operator+= (Cmplx c)
 Addition operator. More...
 
virtual Function< Cmplx > & operator+= (const Function< Cmplx > &fnc)
 Addition operator. More...
 
virtual Function< Cmplx > & operator-= (Cmplx c)
 Subtraction operator. More...
 
virtual Function< Cmplx > & operator-= (const Function< Cmplx > &fnc)
 Subtraction operator. More...
 
virtual Function< Cmplx > & operator= (const Function< Cmplx > &fnc)
 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...
 

Private Attributes

const Function< Real > & cfnc_
 
Cmplx dummy_
 

Detailed Description

Complex function based on a real function (casting).

Author
Kersten Schmidt, 2005

Definition at line 104 of file complex.hh.

Constructor & Destructor Documentation

◆ ComplexFunction()

concepts::ComplexFunction::ComplexFunction ( const Function< Real > &  fnc)
inline

Constructor.

Definition at line 107 of file complex.hh.

Member Function Documentation

◆ add()

virtual Function<Cmplx >& concepts::Function< Cmplx >::add ( const Function< Cmplx > &  fnc,
Cmplx  a 
)
virtualinherited

Adds a times fnc to this function.

◆ dim()

uint concepts::Function< Cmplx >::dim
inlineinherited

Returns the dimension of the function.

Definition at line 53 of file basis.hh.

◆ info()

virtual std::ostream& concepts::ComplexFunction::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::Function< Cmplx >.

◆ operator()() [1/2]

virtual Cmplx& concepts::ComplexFunction::operator() ( uint  i)
inlinevirtual

Index operator.

Implements concepts::Function< Cmplx >.

Definition at line 116 of file complex.hh.

◆ operator()() [2/2]

virtual Cmplx concepts::ComplexFunction::operator() ( uint  i) const
inlinevirtual

Index operator.

Implements concepts::Function< Cmplx >.

Definition at line 121 of file complex.hh.

◆ operator*=()

virtual Function<Cmplx >& concepts::Function< Cmplx >::operator*= ( Cmplx  a)
virtualinherited

Scaling operator.

◆ operator+=() [1/2]

virtual Function<Cmplx >& concepts::Function< Cmplx >::operator+= ( Cmplx  c)
virtualinherited

Addition operator.

◆ operator+=() [2/2]

virtual Function<Cmplx >& concepts::Function< Cmplx >::operator+= ( const Function< Cmplx > &  fnc)
virtualinherited

Addition operator.

◆ operator-=() [1/2]

virtual Function<Cmplx >& concepts::Function< Cmplx >::operator-= ( Cmplx  c)
virtualinherited

Subtraction operator.

◆ operator-=() [2/2]

virtual Function<Cmplx >& concepts::Function< Cmplx >::operator-= ( const Function< Cmplx > &  fnc)
virtualinherited

Subtraction operator.

◆ operator=()

virtual Function<Cmplx>& concepts::ComplexFunction::operator= ( const Function< Cmplx > &  fnc)
inlinevirtual

Assignment operator.

Implements concepts::Function< Cmplx >.

Definition at line 110 of file complex.hh.

Member Data Documentation

◆ cfnc_

const Function<Real>& concepts::ComplexFunction::cfnc_
private

Definition at line 127 of file complex.hh.

◆ dim_

uint concepts::Function< Cmplx >::dim_
protectedinherited

Dimension of the function (or of the space the function is defined)

Definition at line 57 of file basis.hh.

◆ dummy_

Cmplx concepts::ComplexFunction::dummy_
private

Definition at line 128 of file complex.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich