#include <stdlib.h>#include <stdio.h>#include <limits.h>#include <math.h>#include "UFconfig.h"#include "camd.h"#include <stddef.h>#include <assert.h>

Go to the source code of this file.
Defines | |
| #define | ASSERT(expression) (assert (expression)) |
| #define | CAMD_1 camd_1 |
| #define | CAMD_2 camd_2 |
| #define | CAMD_aat camd_aat |
| #define | CAMD_control camd_control |
| #define | CAMD_cvalid camd_cvalid |
| #define | CAMD_debug camd_debug |
| #define | CAMD_DEBUG0(params) { PRINTF (params) ; } |
| #define | CAMD_DEBUG1(params) { if (CAMD_debug >= 1) PRINTF (params) ; } |
| #define | CAMD_DEBUG2(params) { if (CAMD_debug >= 2) PRINTF (params) ; } |
| #define | CAMD_DEBUG3(params) { if (CAMD_debug >= 3) PRINTF (params) ; } |
| #define | CAMD_DEBUG4(params) { if (CAMD_debug >= 4) PRINTF (params) ; } |
| #define | CAMD_debug_init camd_debug_init |
| #define | CAMD_defaults camd_defaults |
| #define | CAMD_dump camd_dump |
| #define | CAMD_info camd_info |
| #define | CAMD_order camd_order |
| #define | CAMD_post_tree camd_post_tree |
| #define | CAMD_postorder camd_postorder |
| #define | CAMD_preprocess camd_preprocess |
| #define | CAMD_valid camd_valid |
| #define | EMPTY (-1) |
| #define | EMPTY (-1) |
| #define | EXTERN extern |
| #define | FALSE (0) |
| #define | FLIP(i) (-(i)-2) |
| #define | GLOBAL |
| #define | ID "%d" |
| #define | IMPLIES(p, q) (!(p) || (q)) |
| #define | Int int |
| #define | Int_MAX INT_MAX |
| #define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
| #define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
| #define | PRINTF(params) { if (camd_printf != NULL) (void) camd_printf params ; } |
| #define | PRIVATE static |
| #define | SIZE_T_MAX ((size_t) (-1)) |
| #define | TRUE (1) |
| #define | UNFLIP(i) ((i < EMPTY) ? FLIP (i) : (i)) |
Functions | |
| GLOBAL void | CAMD_1 (Int n, const Int Ap[], const Int Ai[], Int P[], Int Pinv[], Int Len[], Int slen, Int S[], double Control[], double Info[], const Int C[]) |
| GLOBAL size_t | CAMD_aat (Int n, const Int Ap[], const Int Ai[], Int Len[], Int Tp[], double Info[]) |
| GLOBAL void | CAMD_debug_init (char *s) |
| GLOBAL void | CAMD_dump (Int n, Int Pe[], Int Iw[], Int Len[], Int iwlen, Int pfree, Int Nv[], Int Next[], Int Last[], Int Head[], Int Elen[], Int Degree[], Int W[], Int nel, Int BucketSet[], const Int C[], Int Curc) |
| GLOBAL Int | CAMD_postorder (Int j, Int k, Int n, Int head[], Int next[], Int post[], Int stack[]) |
| GLOBAL void | CAMD_preprocess (Int n, const Int Ap[], const Int Ai[], Int Rp[], Int Ri[], Int W[], Int Flag[]) |
Variables | |
| EXTERN Int | CAMD_debug |
| #define ASSERT | ( | expression | ) | (assert (expression)) |
Definition at line 318 of file camd_internal.h.
| #define CAMD_1 camd_1 |
Definition at line 200 of file camd_internal.h.
| #define CAMD_2 camd_2 |
Definition at line 201 of file camd_internal.h.
| #define CAMD_aat camd_aat |
Definition at line 204 of file camd_internal.h.
| #define CAMD_control camd_control |
Definition at line 198 of file camd_internal.h.
| #define CAMD_cvalid camd_cvalid |
Definition at line 203 of file camd_internal.h.
| #define CAMD_debug camd_debug |
Definition at line 208 of file camd_internal.h.
| #define CAMD_DEBUG0 | ( | params | ) | { PRINTF (params) ; } |
Definition at line 321 of file camd_internal.h.
| #define CAMD_DEBUG1 | ( | params | ) | { if (CAMD_debug >= 1) PRINTF (params) ; } |
Definition at line 322 of file camd_internal.h.
| #define CAMD_DEBUG2 | ( | params | ) | { if (CAMD_debug >= 2) PRINTF (params) ; } |
Definition at line 323 of file camd_internal.h.
| #define CAMD_DEBUG3 | ( | params | ) | { if (CAMD_debug >= 3) PRINTF (params) ; } |
Definition at line 324 of file camd_internal.h.
| #define CAMD_DEBUG4 | ( | params | ) | { if (CAMD_debug >= 4) PRINTF (params) ; } |
Definition at line 325 of file camd_internal.h.
| #define CAMD_debug_init camd_debug_init |
Definition at line 209 of file camd_internal.h.
| #define CAMD_defaults camd_defaults |
Definition at line 197 of file camd_internal.h.
| #define CAMD_dump camd_dump |
Definition at line 207 of file camd_internal.h.
| #define CAMD_info camd_info |
Definition at line 199 of file camd_internal.h.
| #define CAMD_order camd_order |
Definition at line 196 of file camd_internal.h.
| #define CAMD_post_tree camd_post_tree |
Definition at line 206 of file camd_internal.h.
| #define CAMD_postorder camd_postorder |
Definition at line 205 of file camd_internal.h.
| #define CAMD_preprocess camd_preprocess |
Definition at line 210 of file camd_internal.h.
| #define CAMD_valid camd_valid |
Definition at line 202 of file camd_internal.h.
| #define EMPTY (-1) |
Definition at line 145 of file camd_internal.h.
| #define EMPTY (-1) |
Definition at line 145 of file camd_internal.h.
| #define EXTERN extern |
Definition at line 282 of file camd_internal.h.
| #define FALSE (0) |
Definition at line 142 of file camd_internal.h.
| #define FLIP | ( | i | ) | (-(i)-2) |
Definition at line 122 of file camd_internal.h.
| #define GLOBAL |
Definition at line 144 of file camd_internal.h.
| #define ID "%d" |
Definition at line 193 of file camd_internal.h.
| #define IMPLIES | ( | p, | |||
| q | ) | (!(p) || (q)) |
Definition at line 130 of file camd_internal.h.
| #define Int int |
Definition at line 192 of file camd_internal.h.
| #define Int_MAX INT_MAX |
Definition at line 194 of file camd_internal.h.
| #define MAX | ( | a, | |||
| b | ) | (((a) > (b)) ? (a) : (b)) |
Definition at line 126 of file camd_internal.h.
| #define MIN | ( | a, | |||
| b | ) | (((a) < (b)) ? (a) : (b)) |
Definition at line 127 of file camd_internal.h.
| #define PRINTF | ( | params | ) | { if (camd_printf != NULL) (void) camd_printf params ; } |
Definition at line 219 of file camd_internal.h.
| #define PRIVATE static |
Definition at line 143 of file camd_internal.h.
| #define SIZE_T_MAX ((size_t) (-1)) |
Definition at line 158 of file camd_internal.h.
| #define TRUE (1) |
Definition at line 141 of file camd_internal.h.
| #define UNFLIP | ( | i | ) | ((i < EMPTY) ? FLIP (i) : (i)) |
Definition at line 123 of file camd_internal.h.
| GLOBAL void CAMD_1 | ( | Int | n, | |
| const Int | Ap[], | |||
| const Int | Ai[], | |||
| Int | P[], | |||
| Int | Pinv[], | |||
| Int | Len[], | |||
| Int | slen, | |||
| Int | S[], | |||
| double | Control[], | |||
| double | Info[], | |||
| const Int | C[] | |||
| ) |
| GLOBAL size_t CAMD_aat | ( | Int | n, | |
| const Int | Ap[], | |||
| const Int | Ai[], | |||
| Int | Len[], | |||
| Int | Tp[], | |||
| double | Info[] | |||
| ) |
| GLOBAL void CAMD_debug_init | ( | char * | s | ) |
| GLOBAL void CAMD_dump | ( | Int | n, | |
| Int | Pe[], | |||
| Int | Iw[], | |||
| Int | Len[], | |||
| Int | iwlen, | |||
| Int | pfree, | |||
| Int | Nv[], | |||
| Int | Next[], | |||
| Int | Last[], | |||
| Int | Head[], | |||
| Int | Elen[], | |||
| Int | Degree[], | |||
| Int | W[], | |||
| Int | nel, | |||
| Int | BucketSet[], | |||
| const Int | C[], | |||
| Int | Curc | |||
| ) |
| GLOBAL Int CAMD_postorder | ( | Int | j, | |
| Int | k, | |||
| Int | n, | |||
| Int | head[], | |||
| Int | next[], | |||
| Int | post[], | |||
| Int | stack[] | |||
| ) |
| GLOBAL void CAMD_preprocess | ( | Int | n, | |
| const Int | Ap[], | |||
| const Int | Ai[], | |||
| Int | Rp[], | |||
| Int | Ri[], | |||
| Int | W[], | |||
| Int | Flag[] | |||
| ) |
| EXTERN Int CAMD_debug |
Definition at line 285 of file camd_internal.h.