104 printf (
"ccolamd %d-by-%d input matrix:\n",
A_NROW,
A_NCOL) ;
105 for (col = 0 ; col <
A_NCOL ; col++)
107 length = p [col+1] - p [
col] ;
108 printf (
"Column %ld, with %ld entries:\n", col, length) ;
109 for (pp = p [col] ; pp < p [col+1] ; pp++)
112 printf (
" row %ld\n", row) ;
125 printf (
"ccolamd error!\n") ;
133 printf (
"ccolamd_l column ordering:\n") ;
134 printf (
"1st column: %ld\n", p [0]) ;
135 printf (
"2nd column: %ld\n", p [1]) ;
136 printf (
"3rd column: %ld\n", p [2]) ;
137 printf (
"4th column: %ld\n", p [3]) ;
143 printf (
"\n\ncsymamd_l %d-by-%d input matrix:\n",
B_N,
B_N) ;
144 printf (
"Entries in strictly lower triangular part:\n") ;
145 for (col = 0 ; col <
B_N ; col++)
147 length = q [col+1] - q [
col] ;
148 printf (
"Column %ld, with %ld entries:\n", col, length) ;
149 for (pp = q [col] ; pp < q [col+1] ; pp++)
152 printf (
" row %ld\n", row) ;
160 ok =
csymamd_l (B_N, B, q, perm, (
double *) NULL, stats, &calloc, &free,
166 printf (
"csymamd error!\n") ;
174 printf (
"csymamd_l column ordering:\n") ;
175 printf (
"1st row/column: %ld\n", perm [0]) ;
176 printf (
"2nd row/column: %ld\n", perm [1]) ;
177 printf (
"3rd row/column: %ld\n", perm [2]) ;
178 printf (
"4th row/column: %ld\n", perm [3]) ;
179 printf (
"5th row/column: %ld\n", perm [4]) ;
void ccolamd_l_report(SuiteSparse_long stats [CCOLAMD_STATS])
void csymamd_l_report(SuiteSparse_long stats [CCOLAMD_STATS])
SuiteSparse_long ccolamd_l(SuiteSparse_long n_row, SuiteSparse_long n_col, SuiteSparse_long Alen, SuiteSparse_long A [], SuiteSparse_long p [], double knobs [CCOLAMD_KNOBS], SuiteSparse_long stats [CCOLAMD_STATS], SuiteSparse_long cmember [])
idx_t idx_t idx_t idx_t idx_t * perm
EIGEN_DEVICE_FUNC const Scalar & q
SuiteSparse_long csymamd_l(SuiteSparse_long n, SuiteSparse_long A [], SuiteSparse_long p [], SuiteSparse_long perm [], double knobs [CCOLAMD_KNOBS], SuiteSparse_long stats [CCOLAMD_STATS], void *(*allocate)(size_t, size_t), void(*release)(void *), SuiteSparse_long cmember [], SuiteSparse_long stype)