lemon-project-template-glpk

annotate deps/glpk/src/colamd/colamd.h @ 9:33de93886c88

Import GLPK 4.47
author Alpar Juttner <alpar@cs.elte.hu>
date Sun, 06 Nov 2011 20:59:10 +0100
parents
children
rev   line source
alpar@9 1 /* colamd.h */
alpar@9 2
alpar@9 3 /* Written by Andrew Makhorin <mao@gnu.org>. */
alpar@9 4
alpar@9 5 #ifndef COLAMD_H
alpar@9 6 #define COLAMD_H
alpar@9 7
alpar@9 8 #define _GLPSTD_STDIO
alpar@9 9 #include "glpenv.h"
alpar@9 10
alpar@9 11 #define COLAMD_DATE "Nov 1, 2007"
alpar@9 12 #define COLAMD_VERSION_CODE(main, sub) ((main) * 1000 + (sub))
alpar@9 13 #define COLAMD_MAIN_VERSION 2
alpar@9 14 #define COLAMD_SUB_VERSION 7
alpar@9 15 #define COLAMD_SUBSUB_VERSION 1
alpar@9 16 #define COLAMD_VERSION \
alpar@9 17 COLAMD_VERSION_CODE(COLAMD_MAIN_VERSION, COLAMD_SUB_VERSION)
alpar@9 18
alpar@9 19 #define COLAMD_KNOBS 20
alpar@9 20 #define COLAMD_STATS 20
alpar@9 21 #define COLAMD_DENSE_ROW 0
alpar@9 22 #define COLAMD_DENSE_COL 1
alpar@9 23 #define COLAMD_AGGRESSIVE 2
alpar@9 24 #define COLAMD_DEFRAG_COUNT 2
alpar@9 25 #define COLAMD_STATUS 3
alpar@9 26 #define COLAMD_INFO1 4
alpar@9 27 #define COLAMD_INFO2 5
alpar@9 28 #define COLAMD_INFO3 6
alpar@9 29
alpar@9 30 #define COLAMD_OK (0)
alpar@9 31 #define COLAMD_OK_BUT_JUMBLED (1)
alpar@9 32 #define COLAMD_ERROR_A_not_present (-1)
alpar@9 33 #define COLAMD_ERROR_p_not_present (-2)
alpar@9 34 #define COLAMD_ERROR_nrow_negative (-3)
alpar@9 35 #define COLAMD_ERROR_ncol_negative (-4)
alpar@9 36 #define COLAMD_ERROR_nnz_negative (-5)
alpar@9 37 #define COLAMD_ERROR_p0_nonzero (-6)
alpar@9 38 #define COLAMD_ERROR_A_too_small (-7)
alpar@9 39 #define COLAMD_ERROR_col_length_negative (-8)
alpar@9 40 #define COLAMD_ERROR_row_index_out_of_bounds (-9)
alpar@9 41 #define COLAMD_ERROR_out_of_memory (-10)
alpar@9 42 #define COLAMD_ERROR_internal_error (-999)
alpar@9 43
alpar@9 44 #define colamd_recommended _glp_colamd_recommended
alpar@9 45 size_t colamd_recommended(int nnz, int n_row, int n_col);
alpar@9 46
alpar@9 47 #define colamd_set_defaults _glp_colamd_set_defaults
alpar@9 48 void colamd_set_defaults(double knobs [COLAMD_KNOBS]);
alpar@9 49
alpar@9 50 #define colamd _glp_colamd
alpar@9 51 int colamd(int n_row, int n_col, int Alen, int A[], int p[],
alpar@9 52 double knobs[COLAMD_KNOBS], int stats[COLAMD_STATS]);
alpar@9 53
alpar@9 54 #define symamd _glp_symamd
alpar@9 55 int symamd(int n, int A[], int p[], int perm[],
alpar@9 56 double knobs[COLAMD_KNOBS], int stats[COLAMD_STATS],
alpar@9 57 void *(*allocate)(size_t, size_t), void(*release)(void *));
alpar@9 58
alpar@9 59 #define colamd_report _glp_colamd_report
alpar@9 60 void colamd_report(int stats[COLAMD_STATS]);
alpar@9 61
alpar@9 62 #define symamd_report _glp_symamd_report
alpar@9 63 void symamd_report(int stats[COLAMD_STATS]);
alpar@9 64
alpar@9 65 #define colamd_printf xprintf
alpar@9 66
alpar@9 67 #endif
alpar@9 68
alpar@9 69 /* eof */