dcomplex.h File Reference

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

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  doublecomplex

Defines

#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.


Define Documentation

#define z_add ( c,
a,
 ) 

Value:

{ (c)->r = (a)->r + (b)->r; \
                         (c)->i = (a)->i + (b)->i; }

Definition at line 31 of file dcomplex.h.

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

Definition at line 52 of file dcomplex.h.

#define z_sub ( c,
a,
 ) 

Value:

{ (c)->r = (a)->r - (b)->r; \
                         (c)->i = (a)->i - (b)->i; }

Definition at line 35 of file dcomplex.h.

#define zd_mult ( c,
a,
 ) 

Value:

{ (c)->r = (a)->r * (b); \
                           (c)->i = (a)->i * (b); }

Definition at line 39 of file dcomplex.h.

#define zz_mult ( c,
a,
 ) 

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; \
    }

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  
)


Generated on Wed Nov 20 09:27:48 2013 for TBCI Numerical high perf. C++ Library by  doxygen 1.5.6