Function as real part of an complex function. More...

#include <complex.hh>

Inheritance diagram for concepts::RealPart:
concepts::CmplxPart concepts::Function< Real > concepts::OutputOperator

Public Member Functions

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

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream. More...
 

Protected Attributes

const Function< Cmplx > * cfnc_
 
uint dim_
 Dimension of the function (or of the space the function is defined) More...
 
Function< Cmplx > * fnc_
 

Detailed Description

Function as real part of an complex function.

Author
Kersten Schmidt, 2005

Definition at line 50 of file complex.hh.

Constructor & Destructor Documentation

◆ RealPart() [1/2]

concepts::RealPart::RealPart ( const Function< Cmplx > &  fnc)
inline

Constructor.

Definition at line 53 of file complex.hh.

◆ RealPart() [2/2]

concepts::RealPart::RealPart ( Function< Cmplx > &  fnc)
inline

Definition at line 54 of file complex.hh.

Member Function Documentation

◆ add()

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

Adds a times fnc to this function.

◆ dim()

uint concepts::Function< Real >::dim ( ) const
inlineinherited

Returns the dimension of the function.

Definition at line 53 of file basis.hh.

◆ info()

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

Returns information in an output stream.

Reimplemented from concepts::CmplxPart.

◆ operator()() [1/2]

virtual Real& concepts::RealPart::operator() ( uint  i)
inlinevirtual

Index operator.

Implements concepts::Function< Real >.

Definition at line 57 of file complex.hh.

◆ operator()() [2/2]

virtual Real concepts::RealPart::operator() ( uint  i) const
inlinevirtual

Index operator.

Implements concepts::Function< Real >.

Definition at line 62 of file complex.hh.

◆ operator*=()

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

Scaling operator.

◆ operator+=() [1/2]

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

Addition operator.

◆ operator+=() [2/2]

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

Addition operator.

◆ operator-=() [1/2]

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

Subtraction operator.

◆ operator-=() [2/2]

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

Subtraction operator.

Member Data Documentation

◆ cfnc_

const Function<Cmplx>* concepts::CmplxPart::cfnc_
protectedinherited

Definition at line 40 of file complex.hh.

◆ dim_

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

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

Definition at line 57 of file basis.hh.

◆ fnc_

Function<Cmplx>* concepts::CmplxPart::fnc_
protectedinherited

Definition at line 41 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