Data Structures |
struct | sm_element_struct |
struct | sm_row_struct |
struct | sm_col_struct |
struct | sm_matrix_struct |
Defines |
#define | sm_alloc sm_allocate |
#define | sm_free sm_free_space |
#define | sm_get_col(A, colnum) |
#define | sm_get_row(A, rownum) |
#define | sm_foreach_row(A, prow) for(prow = A->first_row; prow != 0; prow = prow->next_row) |
#define | sm_foreach_col(A, pcol) for(pcol = A->first_col; pcol != 0; pcol = pcol->next_col) |
#define | sm_foreach_row_element(prow, p) for(p = (prow == 0) ? 0 : prow->first_col; p != 0; p = p->next_col) |
#define | sm_foreach_col_element(pcol, p) for(p = (pcol == 0) ? 0 : pcol->first_row; p != 0; p = p->next_row) |
#define | sm_put(x, val) (x->user_word = (char *) val) |
#define | sm_get(type, x) ((type) (x->user_word)) |
Typedefs |
typedef struct sm_element_struct | sm_element |
typedef struct sm_row_struct | sm_row |
typedef struct sm_col_struct | sm_col |
typedef struct sm_matrix_struct | sm_matrix |
Functions |
EXTERN sm_matrix *sm_allocate | ARGS ((void)) |
EXTERN sm_matrix *sm_alloc_size | ARGS ((int, int)) |
EXTERN void sm_free_space | ARGS ((sm_matrix *)) |
EXTERN void sm_resize | ARGS ((sm_matrix *, int, int)) |
EXTERN void sm_remove_element | ARGS ((sm_matrix *, sm_element *)) |
EXTERN void sm_delrow | ARGS ((sm_matrix *, int)) |
EXTERN void sm_copy_row | ARGS ((sm_matrix *, int, sm_row *)) |
EXTERN void sm_copy_col | ARGS ((sm_matrix *, int, sm_col *)) |
EXTERN int sm_read | ARGS ((FILE *, sm_matrix **)) |
EXTERN void sm_write | ARGS ((FILE *, sm_matrix *)) |
EXTERN void sm_dump | ARGS ((sm_matrix *, char *, int)) |
EXTERN void sm_col_free | ARGS ((sm_col *)) |
EXTERN sm_element *sm_col_insert | ARGS ((sm_col *, int)) |
EXTERN int sm_col_contains | ARGS ((sm_col *, sm_col *)) |
EXTERN void sm_col_remove_element | ARGS ((sm_col *, sm_element *)) |
EXTERN void sm_col_print | ARGS ((FILE *, sm_col *)) |
EXTERN void sm_row_free | ARGS ((sm_row *)) |
EXTERN sm_element *sm_row_insert | ARGS ((sm_row *, int)) |
EXTERN int sm_row_contains | ARGS ((sm_row *, sm_row *)) |
EXTERN void sm_row_remove_element | ARGS ((sm_row *, sm_element *)) |
EXTERN void sm_row_print | ARGS ((FILE *, sm_row *)) |