#ifndef AMD_H
#define AMD_H
#ifdef __cplusplus
extern "C" {
#endif
#include "SuiteSparse_config.h"
int amd_order
(
int32_t n,
const int32_t Ap [ ],
const int32_t Ai [ ],
int32_t P [ ],
double Control [ ],
double Info [ ]
) ;
int amd_l_order
(
int64_t n,
const int64_t Ap [ ],
const int64_t Ai [ ],
int64_t P [ ],
double Control [ ],
double Info [ ]
) ;
void amd_2
(
int32_t n,
int32_t Pe [ ],
int32_t Iw [ ],
int32_t Len [ ],
int32_t iwlen,
int32_t pfree,
int32_t Nv [ ],
int32_t Next [ ],
int32_t Last [ ],
int32_t Head [ ],
int32_t Elen [ ],
int32_t Degree [ ],
int32_t W [ ],
double Control [ ],
double Info [ ]
) ;
void amd_l2
(
int64_t n,
int64_t Pe [ ],
int64_t Iw [ ],
int64_t Len [ ],
int64_t iwlen,
int64_t pfree,
int64_t Nv [ ],
int64_t Next [ ],
int64_t Last [ ],
int64_t Head [ ],
int64_t Elen [ ],
int64_t Degree [ ],
int64_t W [ ],
double Control [ ],
double Info [ ]
) ;
int amd_valid
(
int32_t n_row,
int32_t n_col,
const int32_t Ap [ ],
const int32_t Ai [ ]
) ;
int amd_l_valid
(
int64_t n_row,
int64_t n_col,
const int64_t Ap [ ],
const int64_t Ai [ ]
) ;
void amd_defaults (double Control [ ]) ;
void amd_l_defaults (double Control [ ]) ;
void amd_control (double Control [ ]) ;
void amd_l_control (double Control [ ]) ;
void amd_info (double Info [ ]) ;
void amd_l_info (double Info [ ]) ;
#define AMD_CONTROL 5
#define AMD_INFO 20
#define AMD_DENSE 0
#define AMD_AGGRESSIVE 1
#define AMD_DEFAULT_DENSE 10.0
#define AMD_DEFAULT_AGGRESSIVE 1
#define AMD_STATUS 0
#define AMD_N 1
#define AMD_NZ 2
#define AMD_SYMMETRY 3
#define AMD_NZDIAG 4
#define AMD_NZ_A_PLUS_AT 5
#define AMD_NDENSE 6
#define AMD_MEMORY 7
#define AMD_NCMPA 8
#define AMD_LNZ 9
#define AMD_NDIV 10
#define AMD_NMULTSUBS_LDL 11
#define AMD_NMULTSUBS_LU 12
#define AMD_DMAX 13
#define AMD_OK 0
#define AMD_OUT_OF_MEMORY -1
#define AMD_INVALID -2
#define AMD_OK_BUT_JUMBLED 1
#define AMD_DATE "June 16, 2023"
#define AMD_MAIN_VERSION 3
#define AMD_SUB_VERSION 0
#define AMD_SUBSUB_VERSION 4
#define AMD_VERSION_CODE(main,sub) ((main) * 1000 + (sub))
#define AMD_VERSION AMD_VERSION_CODE(AMD_MAIN_VERSION,AMD_SUB_VERSION)
#ifdef __cplusplus
}
#endif
#endif