24 for(p = prow->first_col; p != 0; p = p->next_col) {
25 (void)
sm_insert(A, p->row_num, p->col_num);
43 if (*rows_visited == A->nrows) {
46 for(p = prow->
first_col; p != 0; p = p->next_col) {
49 if (
visit_col(A, pcol, rows_visited, cols_visited)) {
72 if (*cols_visited == A->ncols) {
75 for(p = pcol->
first_row; p != 0; p = p->next_row) {
78 if (
visit_row(A, prow, rows_visited, cols_visited)) {
92 int cols_visited, rows_visited;
102 for(prow = A->first_row; prow != 0; prow = prow->
next_row) {
105 for(pcol = A->first_col; pcol != 0; pcol = pcol->
next_col) {
109 cols_visited = rows_visited = 0;
110 if (
visit_row(A, A->first_row, &rows_visited, &cols_visited)) {
116 for(prow = A->first_row; prow != 0; prow = prow->
next_row) {
int sm_block_partition(sm_matrix *A, sm_matrix **L, sm_matrix **R)
static void copy_row(sm_matrix *A, sm_row *prow)
#define sm_get_row(A, rownum)
#define ABC_NAMESPACE_IMPL_END
#define sm_get_col(A, colnum)
static ABC_NAMESPACE_IMPL_START int visit_col()
sm_element * sm_insert(sm_matrix *A, int row, int col)
ABC_NAMESPACE_IMPL_START sm_matrix * sm_alloc()
#define ABC_NAMESPACE_IMPL_START
static int visit_row(sm_matrix *A, sm_row *prow, int *rows_visited, int *cols_visited)
typedefABC_NAMESPACE_HEADER_START struct sm_element_struct sm_element