48 Int nz, j, p1, p2, ilast, i, p, result =
AMD_OK ;
50 if (n_row < 0 || n_col < 0 || Ap ==
NULL || Ai ==
NULL)
55 if (Ap [0] != 0 || nz < 0)
58 AMD_DEBUG0 ((
"column 0 pointer bad or nz < 0\n")) ;
61 for (j = 0 ; j < n_col ; j++)
69 AMD_DEBUG0 ((
"column "ID
" pointer bad\n", j)) ;
73 for (p = p1 ; p < p2 ; p++)
77 if (i < 0 || i >= n_row)
80 AMD_DEBUG0 ((
"index out of range, col "ID
" row "ID
"\n", j, i));
86 AMD_DEBUG1 ((
"index unsorted/dupl col "ID
" row "ID
"\n", j, i));
GLOBAL Int AMD_valid(Int n_row, Int n_col, const Int Ap[], const Int Ai[])
#define AMD_DEBUG0(params)
#define AMD_DEBUG1(params)
#define AMD_DEBUG3(params)
#define AMD_DEBUG2(params)
#define AMD_OK_BUT_JUMBLED