mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
Updated Eigen_Colamd.h, namespacing macros ALIVE & DEAD as COLAMD_ALIVE & COLAMD_DEAD
to prevent conflicts with other libraries / code.
This commit is contained in:
parent
79c402e40e
commit
fab51d133e
@ -105,8 +105,8 @@ namespace internal {
|
||||
#define COLAMD_EMPTY (-1)
|
||||
|
||||
/* Row and column status */
|
||||
#define ALIVE (0)
|
||||
#define DEAD (-1)
|
||||
#define COLAMD_ALIVE (0)
|
||||
#define COLAMD_DEAD (-1)
|
||||
|
||||
/* Column status */
|
||||
#define DEAD_PRINCIPAL (-1)
|
||||
@ -114,12 +114,12 @@ namespace internal {
|
||||
|
||||
/* Macros for row and column status update and checking. */
|
||||
#define ROW_IS_DEAD(r) ROW_IS_MARKED_DEAD (Row[r].shared2.mark)
|
||||
#define ROW_IS_MARKED_DEAD(row_mark) (row_mark < ALIVE)
|
||||
#define ROW_IS_ALIVE(r) (Row [r].shared2.mark >= ALIVE)
|
||||
#define COL_IS_DEAD(c) (Col [c].start < ALIVE)
|
||||
#define COL_IS_ALIVE(c) (Col [c].start >= ALIVE)
|
||||
#define ROW_IS_MARKED_DEAD(row_mark) (row_mark < COLAMD_ALIVE)
|
||||
#define ROW_IS_ALIVE(r) (Row [r].shared2.mark >= COLAMD_ALIVE)
|
||||
#define COL_IS_DEAD(c) (Col [c].start < COLAMD_ALIVE)
|
||||
#define COL_IS_ALIVE(c) (Col [c].start >= COLAMD_ALIVE)
|
||||
#define COL_IS_DEAD_PRINCIPAL(c) (Col [c].start == DEAD_PRINCIPAL)
|
||||
#define KILL_ROW(r) { Row [r].shared2.mark = DEAD ; }
|
||||
#define KILL_ROW(r) { Row [r].shared2.mark = COLAMD_DEAD ; }
|
||||
#define KILL_PRINCIPAL_COL(c) { Col [c].start = DEAD_PRINCIPAL ; }
|
||||
#define KILL_NON_PRINCIPAL_COL(c) { Col [c].start = DEAD_NON_PRINCIPAL ; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user