TBCI Numerical high perf. C++ Library  2.8.0
Classes | Macros | Functions
scomplex.h File Reference

complex arithmetics (float) for the SuperLU solver More...

Go to the source code of this file.

Classes

struct  complex
 

Macros

#define SCOMPLEX_INCLUDE
 
#define c_add(c, a, b)
 
#define c_sub(c, a, b)
 
#define cs_mult(c, a, b)
 
#define cc_mult(c, a, b)
 
#define c_eq(a, b)   ( (a)->r == (b)->r && (a)->i == (b)->i )
 

Functions

void c_div (complex *, complex *, complex *)
 
double c_abs (complex *)
 
double c_abs1 (complex *)
 
void c_exp (complex *, complex *)
 
void r_cnjg (complex *, complex *)
 
double r_imag (complex *)
 

Detailed Description

complex arithmetics (float) for the SuperLU solver

Definition in file scomplex.h.

Macro Definition Documentation

#define c_add (   c,
  a,
  b 
)
Value:
{ (c)->r = (a)->r + (b)->r; \
(c)->i = (a)->i + (b)->i; }
return c
Definition: f_matrix.h:760
F_TMatrix< T > b
Definition: f_matrix.h:736
int i
Definition: LM_fit.h:71
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 31 of file scomplex.h.

#define c_eq (   a,
  b 
)    ( (a)->r == (b)->r && (a)->i == (b)->i )

Definition at line 52 of file scomplex.h.

#define c_sub (   c,
  a,
  b 
)
Value:
{ (c)->r = (a)->r - (b)->r; \
(c)->i = (a)->i - (b)->i; }
return c
Definition: f_matrix.h:760
F_TMatrix< T > b
Definition: f_matrix.h:736
int i
Definition: LM_fit.h:71
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 35 of file scomplex.h.

#define cc_mult (   c,
  a,
  b 
)
Value:
{ \
float cr, ci; \
cr = (a)->r * (b)->r - (a)->i * (b)->i; \
ci = (a)->i * (b)->r + (a)->r * (b)->i; \
(c)->r = cr; \
(c)->i = ci; \
}
return c
Definition: f_matrix.h:760
F_TMatrix< T > b
Definition: f_matrix.h:736
int i
Definition: LM_fit.h:71
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 43 of file scomplex.h.

#define cs_mult (   c,
  a,
  b 
)
Value:
{ (c)->r = (a)->r * (b); \
(c)->i = (a)->i * (b); }
return c
Definition: f_matrix.h:760
F_TMatrix< T > b
Definition: f_matrix.h:736
int i
Definition: LM_fit.h:71
const unsigned TMatrix< T > const Matrix< T > * a

Definition at line 39 of file scomplex.h.

#define SCOMPLEX_INCLUDE

Definition at line 23 of file scomplex.h.

Function Documentation

double c_abs ( complex )
double c_abs1 ( complex )
void c_div ( complex ,
complex ,
complex  
)
void c_exp ( complex ,
complex  
)
void r_cnjg ( complex ,
complex  
)
double r_imag ( complex )