src/amd/amd.h
author Alpar Juttner <alpar@cs.elte.hu>
Mon, 06 Dec 2010 13:09:21 +0100
changeset 1 c445c931472f
permissions -rw-r--r--
Import glpk-4.45

- Generated files and doc/notes are removed
alpar@1
     1
/* amd.h */
alpar@1
     2
alpar@1
     3
/* Written by Andrew Makhorin <mao@gnu.org>. */
alpar@1
     4
alpar@1
     5
#ifndef GLPAMD_H
alpar@1
     6
#define GLPAMD_H
alpar@1
     7
alpar@1
     8
#define AMD_DATE "May 31, 2007"
alpar@1
     9
#define AMD_VERSION_CODE(main, sub) ((main) * 1000 + (sub))
alpar@1
    10
#define AMD_MAIN_VERSION 2
alpar@1
    11
#define AMD_SUB_VERSION 2
alpar@1
    12
#define AMD_SUBSUB_VERSION 0
alpar@1
    13
#define AMD_VERSION AMD_VERSION_CODE(AMD_MAIN_VERSION, AMD_SUB_VERSION)
alpar@1
    14
alpar@1
    15
#define AMD_CONTROL 5
alpar@1
    16
#define AMD_INFO 20
alpar@1
    17
alpar@1
    18
#define AMD_DENSE 0
alpar@1
    19
#define AMD_AGGRESSIVE 1
alpar@1
    20
alpar@1
    21
#define AMD_DEFAULT_DENSE 10.0
alpar@1
    22
#define AMD_DEFAULT_AGGRESSIVE 1
alpar@1
    23
alpar@1
    24
#define AMD_STATUS         0
alpar@1
    25
#define AMD_N              1
alpar@1
    26
#define AMD_NZ             2
alpar@1
    27
#define AMD_SYMMETRY       3
alpar@1
    28
#define AMD_NZDIAG         4
alpar@1
    29
#define AMD_NZ_A_PLUS_AT   5
alpar@1
    30
#define AMD_NDENSE         6
alpar@1
    31
#define AMD_MEMORY         7
alpar@1
    32
#define AMD_NCMPA          8
alpar@1
    33
#define AMD_LNZ            9
alpar@1
    34
#define AMD_NDIV           10
alpar@1
    35
#define AMD_NMULTSUBS_LDL  11
alpar@1
    36
#define AMD_NMULTSUBS_LU   12
alpar@1
    37
#define AMD_DMAX           13
alpar@1
    38
alpar@1
    39
#define AMD_OK             0
alpar@1
    40
#define AMD_OUT_OF_MEMORY  (-1)
alpar@1
    41
#define AMD_INVALID        (-2)
alpar@1
    42
#define AMD_OK_BUT_JUMBLED 1
alpar@1
    43
alpar@1
    44
#define amd_order _glp_amd_order
alpar@1
    45
int amd_order(int n, const int Ap[], const int Ai[], int P[],
alpar@1
    46
      double Control[], double Info[]);
alpar@1
    47
alpar@1
    48
#define amd_2 _glp_amd_2
alpar@1
    49
void amd_2(int n, int Pe[], int Iw[], int Len[], int iwlen, int pfree,
alpar@1
    50
      int Nv[], int Next[], int Last[], int Head[], int Elen[],
alpar@1
    51
      int Degree[], int W[], double Control[], double Info[]);
alpar@1
    52
alpar@1
    53
#define amd_valid _glp_amd_valid
alpar@1
    54
int amd_valid(int n_row, int n_col, const int Ap[], const int Ai[]);
alpar@1
    55
alpar@1
    56
#define amd_defaults _glp_amd_defaults
alpar@1
    57
void amd_defaults(double Control[]);
alpar@1
    58
alpar@1
    59
#define amd_control _glp_amd_control
alpar@1
    60
void amd_control(double Control[]);
alpar@1
    61
alpar@1
    62
#define amd_info _glp_amd_info
alpar@1
    63
void amd_info(double Info[]);
alpar@1
    64
alpar@1
    65
#endif
alpar@1
    66
alpar@1
    67
/* eof */