wnspmat3
Sparse matrix data structures and operations
Usage
int len_i,len_j;
wn_sll *i_lists,*j_lists;
/*
list
of
entries
*/
wn_memgp group;
double value;
int i,j;
ptr baggage;
Overview
The include file <wn/wnspmat.h> defines the sparse matrix structures above. Sparse matrix subroutines provide the following types of sparse matrix operations:
- creation
- input and output
- various optimization algorithms
len_i refers to the number of rows or height of the sparse matrix; len_j refers to the number of columns or width of the sparse matrix.
Other man pages refer to sparse matrix entry row i, column j as "sparse_matrix[i][j]". This array indexing cannot be performed on sparse matrices in C, although it makes a nice shorthand for use in man pages.
Examples
Look in /usr/doc/libwn6/examples for examples of sparse matrix code.
History
- Debian 4.0 (Etch) to Debian 2.2 (Potato): the text shown here
- Debian 2.1 (Slink)