LADEL main
Sparse LDL factorization package with rank 1 and rowadd/rowdel updates
Macros
Macros

Detailed Description

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

Macro Definition Documentation

◆ IS_MARKED

#define IS_MARKED (   nodes,
 
)    (nodes[(k)] == MARKED)

Check whether the k-th node is marked.

Definition at line 67 of file ladel_constants.h.

◆ IS_ROOT

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

◆ LADEL_ABS

#define LADEL_ABS (   a)    ((a) < 0 ? -(a) : (a))

Return the absolute value a number.

Definition at line 59 of file ladel_constants.h.

◆ LADEL_FOR

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

◆ LADEL_MAX

#define LADEL_MAX (   a,
 
)    ((a) > (b) ? (a) : (b))

Return the maximum of two numbers.

Definition at line 57 of file ladel_constants.h.

◆ LADEL_MIN

#define LADEL_MIN (   a,
 
)    ((a) > (b) ? (b) : (a))

Return the minimum of two numbers.

Definition at line 58 of file ladel_constants.h.

◆ MARK

#define MARK (   nodes,
 
)    (nodes[(k)] = MARKED)

Mark the k-th node.

Definition at line 65 of file ladel_constants.h.

◆ UNMARK

#define UNMARK (   nodes,
 
)    (nodes[(k)] = UNMARKED)

Unmark the k-th node.

Definition at line 66 of file ladel_constants.h.