|
#define | M_PI 3.141592653589793238462643383 |
| Mathematical constant .
|
|
#define | NORM_STEPS 20 |
| Number of power iteration steps used to approximate the spectral norm.
|
|
#define | NC_DEFLATE_LEVEL 9 |
| Deflation level for NetCDF compression. More...
|
|
#define | H2_MACH_EPS 1e-13 |
| "Machine accuracy" for some algorithms
|
|
#define | h2_malloc(sz) malloc(sz) |
| Wrapper for either aligned or not align memory allocation function. More...
|
|
#define | h2_free(p) free(p) |
| Wrapper for either aligned or not align memory free function. More...
|
|
#define | ROUNDUP(x, N) ((((x) + (N) - 1) / (N)) * (N)) |
| Round up some value x to the nearest multiple of N. More...
|
|
#define | REAL(x) creal(x) |
| Get the real part of a field element .
|
|
#define | IMAG(x) cimag(x) |
| Get the imaginary part of a field element .
|
|
#define | CONJ(x) conj(x) |
| Compute the complex conjugate of a field element .
|
|
#define | ABSSQR(x) _h2_abssqr(x) |
| Compute the square of the absolute value of a field element .
|
|
#define | ABS(x) REAL_SQRT(ABSSQR(x)) |
| Compute the absolute value of a field element .
|
|
#define | SIGN1(x) _h2_sgn1(x) |
| Compute the sign of a field element with the convention .
|
|
#define | FIELD_RAND() _h2_fieldrand() |
| Compute a (pseudo-)random field element.
|
|
#define | REAL_ABS(x) fabs(x) |
| Compute the absolute value of a real number .
|
|
#define | REAL_SQR(x) _h2_real_sqr(x) |
| Compute the square of a real number .
|
|
#define | REAL_SIN(x) sin(x) |
| Compute the sine of a real number .
|
|
#define | REAL_COS(x) cos(x) |
| Compute the cosine of a real number .
|
|
#define | REAL_ASIN(x) asin(x) |
| Compute the arcsine of a real number .
|
|
#define | REAL_ACOS(x) acos(x) |
| Compute the arccosine of a real number .
|
|
#define | REAL_TAN(x) tan(x) |
| Compute the tangent of a real number .
|
|
#define | REAL_SQRT(x) sqrt(x) |
| Compute the square root of a non-negative real nunber .
|
|
#define | REAL_RSQRT(x) _h2_rsqrt(x) |
| Compute the reciprocal square root of a non-negative real nunber .
|
|
#define | REAL_POW(x, y) pow(x, y) |
| Compute the -th power of a real number .
|
|
#define | REAL_LOG(x) log(x) |
| Compute the natural logarithm of a positive real number .
|
|
#define | REAL_EXP(x) exp(x) |
| Compute the exponetial function of a real number .
|
|
#define | REAL_RAND() _h2_realrand() |
| Compute a (pseudo-)random real number.
|
|
#define | DOT2(x, y) (CONJ((x)[0]) * (y)[0] + CONJ((x)[1]) * (y)[1]) |
| Compute dot product of vectors of dimension 2, i.e. .
|
|
#define | DOT3(x, y) (CONJ((x)[0]) * (y)[0] + CONJ((x)[1]) * (y)[1] + CONJ((x)[2]) * (y)[2]) |
| Compute dot product of vectors of dimension 3, i.e. .
|
|
#define | NORMSQR2(x, y) (ABSSQR(x) + ABSSQR(y)) |
| Compute squared 2-norm of a vector of dimension 2, i.e. .
|
|
#define | NORMSQR3(x, y, z) (ABSSQR(x) + ABSSQR(y) + ABSSQR(z)) |
| Compute squared 2-norm of a vector of dimension 3, i.e. .
|
|
#define | NORM2(x, y) REAL_SQRT(ABSSQR(x) + ABSSQR(y)) |
| Compute 2-norm of a vector of dimension 2, i.e. .
|
|
#define | NORM3(x, y, z) REAL_SQRT(ABSSQR(x) + ABSSQR(y) + ABSSQR(z)) |
| Compute 2-norm of a vector of dimension 3, i.e. .
|
|
#define | REAL_DOT2(x, y) ((x)[0] * (y)[0] + (x)[1] * (y)[1]) |
| Compute dot product of vectors of reals with dimension 2, i.e. .
|
|
#define | REAL_DOT3(x, y) ((x)[0] * (y)[0] + (x)[1] * (y)[1] + (x)[2] * (y)[2]) |
| Compute dot product of vectors of reals with dimension 3, i.e. .
|
|
#define | REAL_NORMSQR2(x, y) (REAL_SQR(x) + REAL_SQR(y)) |
| Compute squared 2-norm of a vector of reals with dimension 2, i.e. .
|
|
#define | REAL_NORMSQR3(x, y, z) (REAL_SQR(x) + REAL_SQR(y) + REAL_SQR(z)) |
| Compute squared 2-norm of a vector of reals with dimension 3, i.e. .
|
|
#define | REAL_NORM2(x, y) REAL_SQRT(REAL_SQR(x) + REAL_SQR(y)) |
| Compute 2-norm of a vector of reals with dimension 2, i.e. .
|
|
#define | REAL_NORM3(x, y, z) REAL_SQRT(REAL_SQR(x) + REAL_SQR(y) + REAL_SQR(z)) |
| Compute 2-norm of a vector of reals with dimension 3, i.e. .
|
|
#define | REAL_MAX(x, y) _h2_realmax(x, y) |
| Compute the maximum of two real numbers and .
|
|
#define | REAL_MAX3(x, y, z) _h2_realmax3(x, y, z) |
| Compute the maximum of three real numbers and .
|
|
#define | REAL_MIN(x, y) _h2_realmin(x, y) |
| Compute the minimum of two real numbers and .
|
|
#define | REAL_MIN3(x, y, z) _h2_realmin3(x, y, z) |
| Compute the minimum of three real numbers and .
|
|
#define | UINT_MAX(x, y) _h2_uintmax(x, y) |
| Compute the maximum of two unsigned integers and .
|
|
#define | UINT_MAX3(x, y, z) _h2_uintmax3(x, y, z) |
| Compute the maximum of three unsigned integers and .
|
|
#define | UINT_MIN(x, y) _h2_uintmin(x, y) |
| Compute the minimum of two unsigned integers and .
|
|
#define | UINT_MIN3(x, y, z) _h2_uintmin3(x, y, z) |
| Compute the minimum of three unsigned integers and .
|
|
#define | allocmem(sz) _h2_allocmem(sz,__FILE__,__LINE__) |
| Allocate heap storage. More...
|
|
#define | allocuint(sz) _h2_allocuint(sz,__FILE__,__LINE__) |
| Allocate heap storage of type uint. More...
|
|
#define | allocreal(sz) _h2_allocreal(sz,__FILE__,__LINE__) |
| Allocate heap storage of type real. More...
|
|
#define | allocfield(sz) _h2_allocfield(sz,__FILE__,__LINE__) |
| Allocate heap storage of type field. More...
|
|
#define | allocmatrix(rows, cols) _h2_allocmatrix(rows,cols,__FILE__,__LINE__) |
| Allocate heap storage for a matrix. More...
|
|
#define | heapsort(n, leq, swap, data) _h2_heapsort(n,leq,swap,data) |
| Heapsort algorithm. More...
|
|