Lines Matching refs:n_col

209 inline Index colamd_c(Index n_col)   in colamd_c()  argument
210 { return Index( ((n_col) + 1) * sizeof (colamd_col<Index>) / sizeof (Index) ) ; } in colamd_c()
218 static Index init_rows_cols (Index n_row, Index n_col, Colamd_Row<Index> Row [], colamd_col<Index> …
221 static void init_scoring (Index n_row, Index n_col, Colamd_Row<Index> Row [], colamd_col<Index> Col…
224 static Index find_ordering (Index n_row, Index n_col, Index Alen, Colamd_Row<Index> Row [], colamd_…
227 static void order_children (Index n_col, colamd_col<Index> Col [], Index p []);
233 static Index garbage_collection (Index n_row, Index n_col, Colamd_Row<Index> Row [], colamd_col<Ind…
264 inline Index colamd_recommended ( Index nnz, Index n_row, Index n_col) in colamd_recommended() argument
266 if ((nnz) < 0 || (n_row) < 0 || (n_col) < 0) in colamd_recommended()
269 return (2 * (nnz) + colamd_c (n_col) + colamd_r (n_row) + (n_col) + ((nnz) / 5)); in colamd_recommended()
329 static bool colamd(Index n_row, Index n_col, Index Alen, Index *A, Index *p, double knobs[COLAMD_KN… in colamd() argument
384 if (n_col < 0) /* n_col must be >= 0 */ in colamd()
387 stats [COLAMD_INFO1] = n_col ; in colamd()
388 COLAMD_DEBUG0 (("colamd: ncol negative %d\n", n_col)) ; in colamd()
392 nnz = p [n_col] ; in colamd()
419 Col_size = colamd_c (n_col) ; in colamd()
421 need = 2*nnz + n_col + Col_size + Row_size ; in colamd()
439 if (!Eigen::internal::init_rows_cols (n_row, n_col, Row, Col, A, p, stats)) in colamd()
448 Eigen::internal::init_scoring (n_row, n_col, Row, Col, A, p, knobs, in colamd()
453 ngarbage = Eigen::internal::find_ordering (n_row, n_col, Alen, Row, Col, A, p, in colamd()
458 Eigen::internal::order_children (n_col, Col, p) ; in colamd()
463 stats [COLAMD_DENSE_COL] = n_col - n_col2 ; in colamd()
494 Index n_col, /* number of columns of A */ in init_rows_cols() argument
514 for (col = 0 ; col < n_col ; col++) in init_rows_cols()
547 for (col = 0 ; col < n_col ; col++) in init_rows_cols()
602 Row [0].start = p [n_col] ; in init_rows_cols()
617 for (col = 0 ; col < n_col ; col++) in init_rows_cols()
635 for (col = 0 ; col < n_col ; col++) in init_rows_cols()
669 for (col = 1 ; col < n_col ; col++) in init_rows_cols()
710 Index n_col, /* number of columns of A */ in init_scoring() argument
742 dense_row_count = COLAMD_MAX (0, COLAMD_MIN (knobs [COLAMD_DENSE_ROW] * n_col, n_col)) ; in init_scoring()
746 n_col2 = n_col ; in init_scoring()
753 for (c = n_col-1 ; c >= 0 ; c--) in init_scoring()
763 COLAMD_DEBUG1 (("colamd: null columns killed: %d\n", n_col - n_col2)) ; in init_scoring()
768 for (c = n_col-1 ; c >= 0 ; c--) in init_scoring()
790 COLAMD_DEBUG1 (("colamd: Dense and null columns killed: %d\n", n_col - n_col2)) ; in init_scoring()
797 COLAMD_ASSERT (deg >= 0 && deg <= n_col) ; in init_scoring()
820 for (c = n_col-1 ; c >= 0 ; c--) in init_scoring()
845 score = COLAMD_MIN (score, n_col) ; in init_scoring()
861 COLAMD_ASSERT (score <= n_col) ; in init_scoring()
867 n_col-n_col2)) ; in init_scoring()
878 for (c = 0 ; c <= n_col ; c++) in init_scoring()
882 min_score = n_col ; in init_scoring()
885 for (c = n_col-1 ; c >= 0 ; c--) in init_scoring()
891 c, Col [c].shared2.score, min_score, n_col)) ; in init_scoring()
898 COLAMD_ASSERT (min_score <= n_col) ; in init_scoring()
900 COLAMD_ASSERT (score <= n_col) ; in init_scoring()
947 Index n_col, /* number of columns of A */ in find_ordering() argument
995 max_mark = INT_MAX - n_col ; /* INT_MAX defined in <limits.h> */ in find_ordering()
1010 COLAMD_ASSERT (min_score <= n_col) ; in find_ordering()
1014 while (head [min_score] == COLAMD_EMPTY && min_score < n_col) in find_ordering()
1019 COLAMD_ASSERT (pivot_col >= 0 && pivot_col <= n_col) ; in find_ordering()
1043 needed_memory = COLAMD_MIN (pivot_col_score, n_col - k) ; in find_ordering()
1046 pfree = Eigen::internal::garbage_collection (n_row, n_col, Row, Col, A, &A [pfree]) ; in find_ordering()
1181 COLAMD_ASSERT (cur_score <= n_col) ; in find_ordering()
1276 cur_score = COLAMD_MIN (cur_score, n_col) ; in find_ordering()
1306 hash %= n_col + 1 ; in find_ordering()
1308 COLAMD_DEBUG4 ((" Hash = %d, n_col = %d.\n", hash, n_col)) ; in find_ordering()
1309 COLAMD_ASSERT (hash <= n_col) ; in find_ordering()
1383 max_score = n_col - k - Col [col].shared1.thickness ; in find_ordering()
1398 COLAMD_ASSERT (min_score <= n_col) ; in find_ordering()
1400 COLAMD_ASSERT (cur_score <= n_col) ; in find_ordering()
1457 Index n_col, /* number of columns of A */ in order_children() argument
1471 for (i = 0 ; i < n_col ; i++) in order_children()
1514 for (c = 0 ; c < n_col ; c++) in order_children()
1595 COLAMD_ASSERT (hash <= n_col) ; in detect_super_cols()
1710 Index n_col, /* number of columns */ in garbage_collection() argument
1729 for (c = 0 ; c < n_col ; c++) in garbage_collection()