alpar@1: /* amd.h */ alpar@1: alpar@1: /* Written by Andrew Makhorin . */ alpar@1: alpar@1: #ifndef GLPAMD_H alpar@1: #define GLPAMD_H alpar@1: alpar@1: #define AMD_DATE "May 31, 2007" alpar@1: #define AMD_VERSION_CODE(main, sub) ((main) * 1000 + (sub)) alpar@1: #define AMD_MAIN_VERSION 2 alpar@1: #define AMD_SUB_VERSION 2 alpar@1: #define AMD_SUBSUB_VERSION 0 alpar@1: #define AMD_VERSION AMD_VERSION_CODE(AMD_MAIN_VERSION, AMD_SUB_VERSION) alpar@1: alpar@1: #define AMD_CONTROL 5 alpar@1: #define AMD_INFO 20 alpar@1: alpar@1: #define AMD_DENSE 0 alpar@1: #define AMD_AGGRESSIVE 1 alpar@1: alpar@1: #define AMD_DEFAULT_DENSE 10.0 alpar@1: #define AMD_DEFAULT_AGGRESSIVE 1 alpar@1: alpar@1: #define AMD_STATUS 0 alpar@1: #define AMD_N 1 alpar@1: #define AMD_NZ 2 alpar@1: #define AMD_SYMMETRY 3 alpar@1: #define AMD_NZDIAG 4 alpar@1: #define AMD_NZ_A_PLUS_AT 5 alpar@1: #define AMD_NDENSE 6 alpar@1: #define AMD_MEMORY 7 alpar@1: #define AMD_NCMPA 8 alpar@1: #define AMD_LNZ 9 alpar@1: #define AMD_NDIV 10 alpar@1: #define AMD_NMULTSUBS_LDL 11 alpar@1: #define AMD_NMULTSUBS_LU 12 alpar@1: #define AMD_DMAX 13 alpar@1: alpar@1: #define AMD_OK 0 alpar@1: #define AMD_OUT_OF_MEMORY (-1) alpar@1: #define AMD_INVALID (-2) alpar@1: #define AMD_OK_BUT_JUMBLED 1 alpar@1: alpar@1: #define amd_order _glp_amd_order alpar@1: int amd_order(int n, const int Ap[], const int Ai[], int P[], alpar@1: double Control[], double Info[]); alpar@1: alpar@1: #define amd_2 _glp_amd_2 alpar@1: void amd_2(int n, int Pe[], int Iw[], int Len[], int iwlen, int pfree, alpar@1: int Nv[], int Next[], int Last[], int Head[], int Elen[], alpar@1: int Degree[], int W[], double Control[], double Info[]); alpar@1: alpar@1: #define amd_valid _glp_amd_valid alpar@1: int amd_valid(int n_row, int n_col, const int Ap[], const int Ai[]); alpar@1: alpar@1: #define amd_defaults _glp_amd_defaults alpar@1: void amd_defaults(double Control[]); alpar@1: alpar@1: #define amd_control _glp_amd_control alpar@1: void amd_control(double Control[]); alpar@1: alpar@1: #define amd_info _glp_amd_info alpar@1: void amd_info(double Info[]); alpar@1: alpar@1: #endif alpar@1: alpar@1: /* eof */