TBCI Numerical high perf. C++ Library 2.8.0
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)

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

◆ c_add

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

Definition at line 31 of file scomplex.h.

◆ c_eq

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

Definition at line 52 of file scomplex.h.

◆ c_sub

#define c_sub ( c,
a,
b )
Value:
{ (c)->r = (a)->r - (b)->r; \
(c)->i = (a)->i - (b)->i; }

Definition at line 35 of file scomplex.h.

◆ cc_mult

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

Definition at line 43 of file scomplex.h.

◆ cs_mult

#define cs_mult ( c,
a,
b )
Value:
{ (c)->r = (a)->r * (b); \
(c)->i = (a)->i * (b); }

Definition at line 39 of file scomplex.h.

◆ SCOMPLEX_INCLUDE

#define SCOMPLEX_INCLUDE

Definition at line 23 of file scomplex.h.

Function Documentation

◆ c_abs()

double c_abs ( complex * )

References complex.

◆ c_abs1()

double c_abs1 ( complex * )

References complex.

◆ c_div()

void c_div ( complex * ,
complex * ,
complex *  )

References complex.

◆ c_exp()

void c_exp ( complex * ,
complex *  )

References complex.

◆ r_cnjg()

void r_cnjg ( complex * ,
complex *  )

References complex.

◆ r_imag()

double r_imag ( complex * )

References complex.