Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXComplexd Class Reference

Double-precision complex. More...

#include <FXComplexd.h>

List of all members.

Public Member Functions

 FXComplexd ()
 FXComplexd (FXdouble r)
 FXComplexd (FXdouble r, FXdouble i)
 FXComplexd (const FXComplexd &c)
FXComplexdset (FXdouble r)
FXComplexdset (FXdouble r, FXdouble i)
FXComplexdset (const FXComplexd &c)
 operator FXbool () const
FXbool operator! () const
FXdouble modulus2 () const
FXdouble modulus () const
FXdouble argument () const
FXdoubleoperator[] (FXint i)
const FXdoubleoperator[] (FXint i) const
FXComplexd operator+ () const
FXComplexd operator- () const
FXComplexdoperator= (const FXdouble r)
FXComplexdoperator= (const FXComplexd &c)
FXComplexdoperator+= (FXdouble r)
FXComplexdoperator-= (FXdouble r)
FXComplexdoperator*= (FXdouble r)
FXComplexdoperator/= (FXdouble r)
FXComplexdoperator+= (const FXComplexd &c)
FXComplexdoperator-= (const FXComplexd &c)
FXComplexdoperator*= (const FXComplexd &c)
FXComplexdoperator/= (const FXComplexd &c)
FXbool operator== (const FXComplexd &c) const
FXbool operator!= (const FXComplexd &c) const

Public Attributes

FXdouble re
FXdouble im

Friends

FXComplexd conjugate (const FXComplexd &c)
FXComplexd polar (FXdouble mod, FXdouble arg)
FXComplexd exponent (const FXComplexd &c)
FXComplexd logarithm (const FXComplexd &c)
FXbool operator== (const FXComplexd &c, FXdouble r)
FXbool operator!= (const FXComplexd &c, FXdouble r)
FXbool operator== (FXdouble r, const FXComplexd &c)
FXbool operator!= (FXdouble r, const FXComplexd &c)
FXComplexd operator+ (const FXComplexd &a, const FXComplexd &b)
FXComplexd operator- (const FXComplexd &a, const FXComplexd &b)
FXComplexd operator* (const FXComplexd &a, const FXComplexd &b)
FXComplexd operator/ (const FXComplexd &a, const FXComplexd &b)
FXComplexd operator+ (const FXComplexd &a, FXdouble b)
FXComplexd operator- (const FXComplexd &a, FXdouble b)
FXComplexd operator* (const FXComplexd &a, FXdouble b)
FXComplexd operator/ (const FXComplexd &a, FXdouble b)
FXComplexd operator+ (FXdouble a, const FXComplexd &b)
FXComplexd operator- (FXdouble a, const FXComplexd &b)
FXComplexd operator* (FXdouble a, const FXComplexd &b)
FXComplexd operator/ (FXdouble a, const FXComplexd &b)
FXStreamoperator<< (FXStream &store, const FXComplexd &c)
FXStreamoperator>> (FXStream &store, FXComplexd &c)


Detailed Description

Double-precision complex.

Constructor & Destructor Documentation

FX::FXComplexd::FXComplexd (  )  [inline]

Default constructor; value is not initialized.

FX::FXComplexd::FXComplexd ( FXdouble  r  )  [inline]

Construct from real.

FX::FXComplexd::FXComplexd ( FXdouble  r,
FXdouble  i 
) [inline]

Construct from components.

FX::FXComplexd::FXComplexd ( const FXComplexd c  )  [inline]

Initialize from another complex.


Member Function Documentation

FXComplexd& FX::FXComplexd::set ( FXdouble  r  )  [inline]

Set value from real.

FXComplexd& FX::FXComplexd::set ( FXdouble  r,
FXdouble  i 
) [inline]

Set value from components.

FXComplexd& FX::FXComplexd::set ( const FXComplexd c  )  [inline]

Set value from another complex.

FX::FXComplexd::operator FXbool (  )  const [inline]

Test for non-zero.

FXbool FX::FXComplexd::operator! (  )  const [inline]

Test if zero.

FXdouble FX::FXComplexd::modulus2 (  )  const [inline]

Squared modulus.

Referenced by FX::operator/(), and operator/=().

FXdouble FX::FXComplexd::modulus (  )  const [inline]

Modulus or absolute value of complex.

Referenced by FX::logarithm().

FXdouble FX::FXComplexd::argument (  )  const [inline]

Argument of complex.

Referenced by FX::logarithm().

FXdouble& FX::FXComplexd::operator[] ( FXint  i  )  [inline]

Return a non-const reference to the ith element.

const FXdouble& FX::FXComplexd::operator[] ( FXint  i  )  const [inline]

Return a const reference to the ith element.

FXComplexd FX::FXComplexd::operator+ (  )  const [inline]

Unary.

FXComplexd FX::FXComplexd::operator- (  )  const [inline]

FXComplexd& FX::FXComplexd::operator= ( const FXdouble  r  )  [inline]

Assignment from real.

FXComplexd& FX::FXComplexd::operator= ( const FXComplexd c  )  [inline]

Assignment from another complex.

FXComplexd& FX::FXComplexd::operator+= ( FXdouble  r  )  [inline]

Assigning operators with real.

FXComplexd& FX::FXComplexd::operator-= ( FXdouble  r  )  [inline]

FXComplexd& FX::FXComplexd::operator*= ( FXdouble  r  )  [inline]

FXComplexd& FX::FXComplexd::operator/= ( FXdouble  r  )  [inline]

FXComplexd& FX::FXComplexd::operator+= ( const FXComplexd c  )  [inline]

Assigning operators with another complex.

References im, and re.

FXComplexd& FX::FXComplexd::operator-= ( const FXComplexd c  )  [inline]

References im, and re.

FXComplexd& FX::FXComplexd::operator*= ( const FXComplexd c  )  [inline]

References im, and re.

FXComplexd& FX::FXComplexd::operator/= ( const FXComplexd c  )  [inline]

References im, modulus2(), and re.

FXbool FX::FXComplexd::operator== ( const FXComplexd c  )  const [inline]

Equality between one complex and another.

References im, and re.

FXbool FX::FXComplexd::operator!= ( const FXComplexd c  )  const [inline]

References im, and re.


Friends And Related Function Documentation

FXComplexd conjugate ( const FXComplexd c  )  [friend]

Return complex complex conjugate.

FXComplexd polar ( FXdouble  mod,
FXdouble  arg 
) [friend]

Return complex number from modulus and argument.

FXComplexd exponent ( const FXComplexd c  )  [friend]

Returns the complex base e exponential of c.

FXComplexd logarithm ( const FXComplexd c  )  [friend]

Returns the complex base e logarithm of c.

FXbool operator== ( const FXComplexd c,
FXdouble  r 
) [friend]

Equality between one complex and real.

FXbool operator!= ( const FXComplexd c,
FXdouble  r 
) [friend]

FXbool operator== ( FXdouble  r,
const FXComplexd c 
) [friend]

Equality between one real and complex.

FXbool operator!= ( FXdouble  r,
const FXComplexd c 
) [friend]

FXComplexd operator+ ( const FXComplexd a,
const FXComplexd b 
) [friend]

Operators between one complex and another.

FXComplexd operator- ( const FXComplexd a,
const FXComplexd b 
) [friend]

FXComplexd operator* ( const FXComplexd a,
const FXComplexd b 
) [friend]

FXComplexd operator/ ( const FXComplexd a,
const FXComplexd b 
) [friend]

FXComplexd operator+ ( const FXComplexd a,
FXdouble  b 
) [friend]

Operators between complex and real.

FXComplexd operator- ( const FXComplexd a,
FXdouble  b 
) [friend]

FXComplexd operator* ( const FXComplexd a,
FXdouble  b 
) [friend]

FXComplexd operator/ ( const FXComplexd a,
FXdouble  b 
) [friend]

FXComplexd operator+ ( FXdouble  a,
const FXComplexd b 
) [friend]

Operators between real and complex.

FXComplexd operator- ( FXdouble  a,
const FXComplexd b 
) [friend]

FXComplexd operator* ( FXdouble  a,
const FXComplexd b 
) [friend]

FXComplexd operator/ ( FXdouble  a,
const FXComplexd b 
) [friend]

FXStream& operator<< ( FXStream store,
const FXComplexd c 
) [friend]

Save to a stream.

FXStream& operator>> ( FXStream store,
FXComplexd c 
) [friend]

Load from a stream.


Member Data Documentation

Copyright © 1997-2009 Jeroen van der Zijp