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

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

Go to the source code of this file.

Classes

struct  doublecomplex
 

Macros

#define DCOMPLEX_INCLUDE
 
#define z_add(c, a, b)
 
#define z_sub(c, a, b)
 
#define zd_mult(c, a, b)
 
#define zz_mult(c, a, b)
 
#define z_eq(a, b)   ( (a)->r == (b)->r && (a)->i == (b)->i )
 

Functions

void z_div (doublecomplex *, doublecomplex *, doublecomplex *)
 
double z_abs (doublecomplex *)
 
double z_abs1 (doublecomplex *)
 
void z_exp (doublecomplex *, doublecomplex *)
 
void d_cnjg (doublecomplex *r, doublecomplex *z)
 
double d_imag (doublecomplex *)
 

Detailed Description

complex arithmetics (double) for the SuperLU solver

Definition in file dcomplex.h.

Macro Definition Documentation

#define DCOMPLEX_INCLUDE

Definition at line 23 of file dcomplex.h.

#define z_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 dcomplex.h.

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

Definition at line 52 of file dcomplex.h.

#define z_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 dcomplex.h.

#define zd_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 dcomplex.h.

#define zz_mult (   c,
  a,
  b 
)
Value:
{ \
double 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 dcomplex.h.

Function Documentation

void d_cnjg ( doublecomplex r,
doublecomplex z 
)
double d_imag ( doublecomplex )
double z_abs ( doublecomplex )
double z_abs1 ( doublecomplex )
void z_div ( doublecomplex ,
doublecomplex ,
doublecomplex  
)
void z_exp ( doublecomplex ,
doublecomplex  
)