Block-Structured AMR Software Framework
complex-type.h File Reference
#include <complex.h>
#include <math.h>

Go to the source code of this file.

Macros

#define complex_t(r, i)   ((double)(r) + ((double)(i)) * I)
 
#define real(x)   creal(x)
 
#define imag(x)   cimag(x)
 
#define abs(x)   fabs(x)
 
#define arg(x)   carg(x)
 

Typedefs

typedef double complex complex_t
 

Macro Definition Documentation

◆ abs

#define abs (   x)    fabs(x)

◆ arg

#define arg (   x)    carg(x)

◆ complex_t

#define complex_t (   r,
 
)    ((double)(r) + ((double)(i)) * I)

◆ imag

#define imag (   x)    cimag(x)

◆ real

#define real (   x)    creal(x)

Typedef Documentation

◆ complex_t

typedef double complex complex_t