16 #ifndef __SUPERLU_SCOMPLEX
17 #define __SUPERLU_SCOMPLEX
22 #ifndef SCOMPLEX_INCLUDE
23 #define SCOMPLEX_INCLUDE
31 #define c_add(c, a, b) { (c)->r = (a)->r + (b)->r; \
32 (c)->i = (a)->i + (b)->i; }
35 #define c_sub(c, a, b) { (c)->r = (a)->r - (b)->r; \
36 (c)->i = (a)->i - (b)->i; }
39 #define cs_mult(c, a, b) { (c)->r = (a)->r * (b); \
40 (c)->i = (a)->i * (b); }
43 #define cc_mult(c, a, b) { \
45 cr = (a)->r * (b)->r - (a)->i * (b)->i; \
46 ci = (a)->i * (b)->r + (a)->r * (b)->i; \
52 #define c_eq(a, b) ( (a)->r == (b)->r && (a)->i == (b)->i )
double c_abs(const complex *)
void c_exp(complex *, const complex *)
void c_div(complex *, const complex *, const complex *)
double r_imag(const complex *)
void r_cnjg(complex *, complex *)