LADEL
main
Sparse LDL factorization package with rank 1 and rowadd/rowdel updates
|
Utility macros.
Macros | |
#define | LADEL_MAX(a, b) ((a) > (b) ? (a) : (b)) |
Return the maximum of two numbers. More... | |
#define | LADEL_MIN(a, b) ((a) > (b) ? (b) : (a)) |
Return the minimum of two numbers. More... | |
#define | LADEL_ABS(a) ((a) < 0 ? -(a) : (a)) |
Return the absolute value a number. More... | |
#define | LADEL_FOR(index, M, col) for(index = (M)->p[(col)]; index < (((M)->nz) ? (M)->p[(col)] + (M)->nz[(col)] : (M)->p[(col)+1]); index++) |
Loop through a column of a sparse matrix. More... | |
#define | IS_ROOT(col, etree) ((etree)[(col)] == NONE) |
Check whether a node is a root (i.e. More... | |
#define | MARK(nodes, k) (nodes[(k)] = MARKED) |
Mark the k-th node. More... | |
#define | UNMARK(nodes, k) (nodes[(k)] = UNMARKED) |
Unmark the k-th node. More... | |
#define | IS_MARKED(nodes, k) (nodes[(k)] == MARKED) |
Check whether the k-th node is marked. More... | |
#define IS_MARKED | ( | nodes, | |
k | |||
) | (nodes[(k)] == MARKED) |
Check whether the k-th node is marked.
Definition at line 67 of file ladel_constants.h.
#define IS_ROOT | ( | col, | |
etree | |||
) | ((etree)[(col)] == NONE) |
Check whether a node is a root (i.e.
has no parent)
Definition at line 63 of file ladel_constants.h.
#define LADEL_ABS | ( | a | ) | ((a) < 0 ? -(a) : (a)) |
Return the absolute value a number.
Definition at line 59 of file ladel_constants.h.
#define LADEL_FOR | ( | index, | |
M, | |||
col | |||
) | for(index = (M)->p[(col)]; index < (((M)->nz) ? (M)->p[(col)] + (M)->nz[(col)] : (M)->p[(col)+1]); index++) |
Loop through a column of a sparse matrix.
Definition at line 61 of file ladel_constants.h.
#define LADEL_MAX | ( | a, | |
b | |||
) | ((a) > (b) ? (a) : (b)) |
Return the maximum of two numbers.
Definition at line 57 of file ladel_constants.h.
#define LADEL_MIN | ( | a, | |
b | |||
) | ((a) > (b) ? (b) : (a)) |
Return the minimum of two numbers.
Definition at line 58 of file ladel_constants.h.
#define MARK | ( | nodes, | |
k | |||
) | (nodes[(k)] = MARKED) |
Mark the k-th node.
Definition at line 65 of file ladel_constants.h.
#define UNMARK | ( | nodes, | |
k | |||
) | (nodes[(k)] = UNMARKED) |
Unmark the k-th node.
Definition at line 66 of file ladel_constants.h.