H2Lib
3.0
|
#include <math.h>
#include <stddef.h>
#include <complex.h>
Go to the source code of this file.
Macros | |
#define | INLINE_PREFIX static |
Prefix for inline functions. | |
#define | HEADER_PREFIX |
Prefix for function declarations. | |
#define | IMPORT_PREFIX |
Prefix for external declarations. | |
#define | VFLOAT 1 |
Fallback vector length for float if vectorization is not enabled. | |
#define | VDOUBLE 1 |
Fallback vector length for double if vectorization is not enabled. | |
#define | VREAL 1 |
Fallback vector length for real if vectorization is not enabled. | |
#define | H2_CHECK_TOLERANCE 1.0e-12 |
#define | H2_ALMOST_ZERO 1e-300 |
#define | SCANF_PREFIX "l" |
Prefix that is needed when reading numbers via 'scanf' function. | |
#define | VFIELD 1 |
Fallback vector length for field if vectorization is not enabled. | |
#define | FIELD_CS(format, cs) "%" #format #cs " + %" #format #cs "i" |
Macro that simplifies the definition of correct conversion specifier for field type values used in 'printf' function. | |
#define | FIELD_SCANF_CS(format, cs) "%l" #format #cs " + %l" #format #cs "i" |
Macro that simplifies the definition of correct conversion specifier for field type values used in 'scanf' function. | |
#define | FIELD_ARG(z) creal(z), cimag(z) |
Macro that simplifies argument passing for 'printf' like functions. | |
#define | FIELD_ADDR(z) (real*)(z), ((real*)(z)+1) |
Macro that simplifies argument passing for 'printf' like functions when the address of the parameters is needed. | |
Typedefs | |
typedef unsigned short | bool |
Boolean type. | |
typedef unsigned | uint |
Unsigned integer type. More... | |
typedef size_t | longindex |
Unsigned long type. More... | |
typedef double | real |
real floating point type. More... | |
typedef real * | preal |
Pointer to real array. | |
typedef const real * | pcreal |
Pointer to constant real array. | |
typedef double _Complex | field |
Field type. More... | |
typedef field * | pfield |
Pointer to field array. | |
typedef const field * | pcfield |
Pointer to constant field array. | |
Enumerations | |
enum | matrixtype { AMATRIX = 0, HMATRIX = 1, H2MATRIX = 2, SPARSEMATRIX = 3, DH2MATRIX = 4 } |
All possible types of matrices. More... | |
Variables | |
const bool | true |
Boolean constant true . | |
const bool | false |
Boolean constant false . | |
const int | i_zero |
Signed integer constant zero. | |
const int | i_one |
Signed integer constant one. | |
const uint | u_zero |
Unsigned integer constant zero. | |
const uint | u_one |
Unsigned integer constant one. | |
const real | r_zero |
real constant zero | |
const real | r_one |
real constant one. | |
const real | r_minusone |
real constant minus one. | |
const field | f_zero |
field constant zero | |
const field | f_one |
field constant one. | |
const field | f_minusone |
field constant minus one. | |
const field | f_i |
field constant for the imaginary number. | |