include/it/cplx.h File Reference
#include <it/types.h>
#include <math.h>
#include <assert.h>
Go to the source code of this file.
|
Data Structures |
struct | _cplx_ |
Defines |
#define | cplx(r, i) { r, i } |
#define | creal(c) ((c).r) |
#define | cimag(c) ((c).i) |
#define | __it_abs(x) (((x)>=0)?(x):(-x)) |
#define | cplx_swap(a, b) __cplx_swap(&a, &b) |
#define | cplx_zero cplx_0 |
#define | cplx_one cplx_1 |
Typedefs |
typedef struct _cplx_ | cplx |
Functions |
static cplx | cadd (cplx a, cplx b) |
static cplx | csub (cplx a, cplx b) |
static cplx | cmul (cplx a, cplx b) |
static cplx | cscale (cplx a, double b) |
static cplx | cdiv (cplx a, cplx b) |
static cplx | cconj (cplx a) |
static cplx | cneg (cplx a) |
static cplx | cinv (cplx a) |
static int | ceq (cplx a, cplx b) |
static double | cnorm (cplx a) |
static double | cang (cplx a) |
static void | __cplx_swap (cplx *a, cplx *b) |
Variables |
cplx const | cplx_0 |
cplx const | cplx_1 |
cplx const | cplx_I |