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 |
#define __it_abs | ( | x | ) | (((x)>=0)?(x):(-x)) |
#define cimag | ( | c | ) | ((c).i) |
Definition at line 45 of file cplx.h.
Referenced by bvec_to_cvec(), cmat_mean(), cvec_abssqr(), cvec_new_1N(), cvec_new_range(), cvec_new_reverse(), cvec_new_unit_roots(), cvec_reverse(), it_fdft(), it_fzt(), it_read_cplx(), it_vfprintf(), ivec_to_cvec(), main(), mat_eig(), mat_h2rs(), and vec_to_cvec().
#define cplx_swap | ( | a, | |||
b | ) | __cplx_swap(&a, &b) |
#define creal | ( | c | ) | ((c).r) |
Definition at line 44 of file cplx.h.
Referenced by bvec_copy_from_cvec(), bvec_to_cvec(), cmat_mean(), cvec_abssqr(), cvec_decr_real(), cvec_incr_real(), cvec_new_1N(), cvec_new_range(), cvec_new_reverse(), cvec_new_unit_roots(), cvec_reverse(), it_fdft(), it_fzt(), it_idft_real(), it_read_cplx(), it_vfprintf(), ivec_copy_from_cvec(), ivec_to_cvec(), mat_eig(), mat_h2rs(), vec_copy_from_cvec(), and vec_to_cvec().
Definition at line 48 of file cplx.h.
References _cplx_::i, and _cplx_::r.
Referenced by __fft_dif(), __ifft_dit(), cmat_col_sum(), cmat_cvec_mul(), cmat_diag_sum(), cmat_elem_add(), cmat_incr(), cmat_new_mul(), cmat_sum(), cmat_vec_mul(), cvec_add(), cvec_arithm(), cvec_cum_sum(), cvec_incr(), cvec_new_arithm(), cvec_sum(), cvec_sum_between(), it_sdft(), it_sidft(), and main().
static double cang | ( | cplx | a | ) | [inline, static] |
Definition at line 102 of file cplx.h.
References _cplx_::i, and _cplx_::r.
Referenced by cvec_conj(), cvec_conj_mul(), and main().
Definition at line 79 of file cplx.h.
References __it_abs, _cplx_::i, and _cplx_::r.
Referenced by cmat_div_by(), cmat_elem_div(), cvec_div(), and main().
Definition at line 140 of file cplx.h.
References _cplx_::i, and _cplx_::r.
Referenced by cvec_count(), cvec_distance_hamming(), cvec_div_by(), cvec_eq(), cvec_find(), cvec_find_first(), and cvec_replace().
Definition at line 62 of file cplx.h.
References _cplx_::i, and _cplx_::r.
Referenced by __fft_dif(), __ifft_dit(), _fft(), _ifft(), cmat_cvec_mul(), cmat_elem_mul(), cmat_inv(), cmat_mul_by(), cmat_new_mul(), cvec_conj_mul(), cvec_div_by(), cvec_geom(), cvec_mul(), cvec_mul_by(), cvec_new_geom(), it_fdft(), it_fzt(), it_sdft(), it_sidft(), and main().
Definition at line 110 of file cplx.h.
References _cplx_::i, and _cplx_::r.
Referenced by cvec_neg().
static double cnorm | ( | cplx | a | ) | [inline, static] |
Definition at line 145 of file cplx.h.
References __it_abs, _cplx_::i, and _cplx_::r.
Referenced by cmat_inv(), cvec_eq_tol(), cvec_new_abs(), it_fzt(), and main().
Definition at line 54 of file cplx.h.
References _cplx_::i, and _cplx_::r.
Referenced by __fft_dif(), __ifft_dit(), cmat_decr(), cmat_elem_sub(), cmat_inv(), cvec_decr(), cvec_eq_tol(), and cvec_sub().
Definition at line 31 of file cplx.c.
Referenced by cmat_col_sum(), cmat_diag_sum(), cmat_eye(), cmat_inv(), cmat_new_zeros(), cmat_sum(), cmat_zeros(), cvec_div_by(), cvec_fft_autocorr(), cvec_fft_conv(), cvec_fft_corr(), cvec_new_zeros(), cvec_sum(), cvec_sum_between(), cvec_zeros(), it_fdft(), it_fzt(), it_sdft(), it_sidft(), main(), parser_get_cplx(), and parser_get_cplx_verbose().
Definition at line 32 of file cplx.c.
Referenced by cmat_eye(), cmat_new_ones(), cmat_ones(), cvec_new_ones(), cvec_ones(), fft_init(), it_fdft(), it_fzt(), and main().
|
|