PPL Logo

util/ckcomplex.h File Reference

Go to the source code of this file.

Data Structures

struct  ckcomplex

Typedefs

typedef fftw_real RealType
typedef ckcomplex complex

Functions

 PUPbytes (ckcomplex) inline int isfinite(complex aNum)
 Overload std::isfinite for complex numbers.
RealType norm (complex aNum)
 Like std::norm, return the square of the distance from (0,0) in the complex number plane.
RealType abs (complex aNum)
 Return the distance from (0,0) in the complex plane.


Typedef Documentation

typedef double RealType

Definition at line 8 of file ckcomplex.h.

typedef ckcomplex complex

Definition at line 100 of file ckcomplex.h.


Function Documentation

PUPbytes ( ckcomplex   ) 

Overload std::isfinite for complex numbers.

Note:
: Doesn't seem to be part of the standard

Definition at line 102 of file ckcomplex.h.

RealType norm ( complex  aNum  )  [inline]

Like std::norm, return the square of the distance from (0,0) in the complex number plane.

Definition at line 109 of file ckcomplex.h.

References ckcomplex::im, and ckcomplex::re.

Referenced by abs().

Here is the caller graph for this function:

RealType abs ( complex  aNum  )  [inline]


Generated on Mon Sep 21 08:11:34 2020 for Charm++ by  doxygen 1.5.5