MBDyn-1.7.3
|
#include <stdlib.h>
Go to the source code of this file.
Classes | |
struct | mbdyn_Colamd_Col |
struct | mbdyn_Colamd_Row |
Macros | |
#define | COLAMD_KNOBS 20 |
#define | COLAMD_STATS 20 |
#define | COLAMD_DENSE_ROW 0 |
#define | COLAMD_DENSE_COL 1 |
#define | COLAMD_DEFRAG_COUNT 2 |
#define | COLAMD_STATUS 3 |
#define | COLAMD_INFO1 4 |
#define | COLAMD_INFO2 5 |
#define | COLAMD_INFO3 6 |
#define | COLAMD_OK (0) |
#define | COLAMD_OK_BUT_JUMBLED (1) |
#define | COLAMD_ERROR_A_not_present (-1) |
#define | COLAMD_ERROR_p_not_present (-2) |
#define | COLAMD_ERROR_nrow_negative (-3) |
#define | COLAMD_ERROR_ncol_negative (-4) |
#define | COLAMD_ERROR_nnz_negative (-5) |
#define | COLAMD_ERROR_p0_nonzero (-6) |
#define | COLAMD_ERROR_A_too_small (-7) |
#define | COLAMD_ERROR_col_length_negative (-8) |
#define | COLAMD_ERROR_row_index_out_of_bounds (-9) |
#define | COLAMD_ERROR_out_of_memory (-10) |
#define | COLAMD_ERROR_internal_error (-999) |
#define | COLAMD_C(n_col) (((n_col) + 1) * sizeof (mbdyn_Colamd_Col) / sizeof (int)) |
#define | COLAMD_R(n_row) (((n_row) + 1) * sizeof (mbdyn_Colamd_Row) / sizeof (int)) |
#define | COLAMD_RECOMMENDED(nnz, n_row, n_col) |
Typedefs | |
typedef struct mbdyn_Colamd_Col | mbdyn_Colamd_Col |
typedef struct mbdyn_Colamd_Row | mbdyn_Colamd_Row |
Functions | |
integer | mbdyn_colamd_recommended (integer nnz, integer n_row, integer n_col) |
void | mbdyn_colamd_set_defaults (double knobs[20]) |
integer | mbdyn_colamd (integer n_row, integer n_col, integer Alen, integer A[], integer p[], double knobs[20], integer stats[20]) |
integer | mbdyn_symamd (integer n, integer A[], integer p[], integer perm[], double knobs[20], integer stats[20], void *(*allocate)(size_t, size_t), void(*release)(void *)) |
void | mbdyn_colamd_report (integer stats[20]) |
void | mbdyn_symamd_report (integer stats[20]) |
#define COLAMD_C | ( | n_col | ) | (((n_col) + 1) * sizeof (mbdyn_Colamd_Col) / sizeof (int)) |
Definition at line 225 of file colamd.h.
Referenced by mbdyn_colamd().
#define COLAMD_DEFRAG_COUNT 2 |
Definition at line 126 of file colamd.h.
Referenced by mbdyn_colamd(), mbdyn_symamd(), and print_report().
#define COLAMD_DENSE_COL 1 |
Definition at line 123 of file colamd.h.
Referenced by init_scoring(), mbdyn_colamd(), mbdyn_colamd_set_defaults(), mbdyn_symamd(), and print_report().
#define COLAMD_DENSE_ROW 0 |
Definition at line 120 of file colamd.h.
Referenced by init_scoring(), mbdyn_colamd(), mbdyn_colamd_set_defaults(), mbdyn_symamd(), and print_report().
#define COLAMD_ERROR_A_not_present (-1) |
Definition at line 139 of file colamd.h.
Referenced by mbdyn_colamd(), mbdyn_symamd(), and print_report().
#define COLAMD_ERROR_A_too_small (-7) |
Definition at line 145 of file colamd.h.
Referenced by mbdyn_colamd(), and print_report().
#define COLAMD_ERROR_col_length_negative (-8) |
Definition at line 146 of file colamd.h.
Referenced by init_rows_cols(), mbdyn_symamd(), and print_report().
#define COLAMD_ERROR_internal_error (-999) |
Definition at line 149 of file colamd.h.
Referenced by mbdyn_symamd(), and print_report().
#define COLAMD_ERROR_ncol_negative (-4) |
Definition at line 142 of file colamd.h.
Referenced by mbdyn_colamd(), mbdyn_symamd(), and print_report().
#define COLAMD_ERROR_nnz_negative (-5) |
Definition at line 143 of file colamd.h.
Referenced by mbdyn_colamd(), mbdyn_symamd(), and print_report().
#define COLAMD_ERROR_nrow_negative (-3) |
Definition at line 141 of file colamd.h.
Referenced by mbdyn_colamd(), and print_report().
#define COLAMD_ERROR_out_of_memory (-10) |
Definition at line 148 of file colamd.h.
Referenced by mbdyn_symamd(), and print_report().
#define COLAMD_ERROR_p0_nonzero (-6) |
Definition at line 144 of file colamd.h.
Referenced by mbdyn_colamd(), mbdyn_symamd(), and print_report().
#define COLAMD_ERROR_p_not_present (-2) |
Definition at line 140 of file colamd.h.
Referenced by mbdyn_colamd(), mbdyn_symamd(), and print_report().
#define COLAMD_ERROR_row_index_out_of_bounds (-9) |
Definition at line 147 of file colamd.h.
Referenced by init_rows_cols(), mbdyn_symamd(), and print_report().
#define COLAMD_INFO1 4 |
Definition at line 132 of file colamd.h.
Referenced by init_rows_cols(), mbdyn_colamd(), mbdyn_symamd(), and print_report().
#define COLAMD_INFO2 5 |
Definition at line 133 of file colamd.h.
Referenced by init_rows_cols(), mbdyn_colamd(), mbdyn_symamd(), and print_report().
#define COLAMD_INFO3 6 |
Definition at line 134 of file colamd.h.
Referenced by init_rows_cols(), mbdyn_symamd(), and print_report().
#define COLAMD_KNOBS 20 |
Definition at line 114 of file colamd.h.
Referenced by NaiveSparsePermSolutionManager< T >::ComputePermutation(), mbdyn_colamd(), mbdyn_colamd_set_defaults(), and mbdyn_symamd().
#define COLAMD_OK (0) |
Definition at line 137 of file colamd.h.
Referenced by mbdyn_colamd(), mbdyn_symamd(), and print_report().
#define COLAMD_OK_BUT_JUMBLED (1) |
Definition at line 138 of file colamd.h.
Referenced by init_rows_cols(), mbdyn_symamd(), and print_report().
#define COLAMD_R | ( | n_row | ) | (((n_row) + 1) * sizeof (mbdyn_Colamd_Row) / sizeof (int)) |
Definition at line 226 of file colamd.h.
Referenced by mbdyn_colamd().
#define COLAMD_RECOMMENDED | ( | nnz, | |
n_row, | |||
n_col | |||
) |
Definition at line 228 of file colamd.h.
Referenced by mbdyn_colamd_recommended().
#define COLAMD_STATS 20 |
Definition at line 117 of file colamd.h.
Referenced by NaiveSparsePermSolutionManager< T >::ComputePermutation(), mbdyn_colamd(), and mbdyn_symamd().
#define COLAMD_STATUS 3 |
Definition at line 129 of file colamd.h.
Referenced by init_rows_cols(), mbdyn_colamd(), mbdyn_symamd(), and print_report().
typedef struct mbdyn_Colamd_Col mbdyn_Colamd_Col |
typedef struct mbdyn_Colamd_Row mbdyn_Colamd_Row |
integer mbdyn_colamd | ( | integer | n_row, |
integer | n_col, | ||
integer | Alen, | ||
integer | A[], | ||
integer | p[], | ||
double | knobs[20], | ||
integer | stats[20] | ||
) |
Definition at line 1411 of file colamd.c.
References COLAMD_C, COLAMD_DEFRAG_COUNT, COLAMD_DENSE_COL, COLAMD_DENSE_ROW, COLAMD_ERROR_A_not_present, COLAMD_ERROR_A_too_small, COLAMD_ERROR_ncol_negative, COLAMD_ERROR_nnz_negative, COLAMD_ERROR_nrow_negative, COLAMD_ERROR_p0_nonzero, COLAMD_ERROR_p_not_present, COLAMD_INFO1, COLAMD_INFO2, COLAMD_KNOBS, COLAMD_OK, COLAMD_R, COLAMD_STATS, COLAMD_STATUS, DEBUG0, FALSE, find_ordering(), init_rows_cols(), init_scoring(), mbdyn_colamd_set_defaults(), order_children(), and TRUE.
Referenced by NaiveSparsePermSolutionManager< T >::ComputePermutation(), and mbdyn_symamd().
Definition at line 1004 of file colamd.c.
References COLAMD_RECOMMENDED.
Referenced by NaiveSparsePermSolutionManager< T >::ComputePermutation(), and mbdyn_symamd().
void mbdyn_colamd_report | ( | integer | stats[20] | ) |
Definition at line 1570 of file colamd.c.
References print_report().
void mbdyn_colamd_set_defaults | ( | double | knobs[20] | ) |
Definition at line 1038 of file colamd.c.
References COLAMD_DENSE_COL, COLAMD_DENSE_ROW, and COLAMD_KNOBS.
Referenced by NaiveSparsePermSolutionManager< T >::ComputePermutation(), mbdyn_colamd(), and mbdyn_symamd().
integer mbdyn_symamd | ( | integer | n, |
integer | A[], | ||
integer | p[], | ||
integer | perm[], | ||
double | knobs[20], | ||
integer | stats[20], | ||
void *(*)(size_t, size_t) | allocate, | ||
void(*)(void *) | release | ||
) |
Definition at line 1066 of file colamd.c.
References ASSERT, COLAMD_DEFRAG_COUNT, COLAMD_DENSE_COL, COLAMD_DENSE_ROW, COLAMD_ERROR_A_not_present, COLAMD_ERROR_col_length_negative, COLAMD_ERROR_internal_error, COLAMD_ERROR_ncol_negative, COLAMD_ERROR_nnz_negative, COLAMD_ERROR_out_of_memory, COLAMD_ERROR_p0_nonzero, COLAMD_ERROR_p_not_present, COLAMD_ERROR_row_index_out_of_bounds, COLAMD_INFO1, COLAMD_INFO2, COLAMD_INFO3, COLAMD_KNOBS, COLAMD_OK, COLAMD_OK_BUT_JUMBLED, COLAMD_STATS, COLAMD_STATUS, count, DEBUG0, DEBUG1, FALSE, mbdyn_colamd(), mbdyn_colamd_recommended(), mbdyn_colamd_set_defaults(), and TRUE.
void mbdyn_symamd_report | ( | integer | stats[20] | ) |
Definition at line 1583 of file colamd.c.
References print_report().