wnspmat(3)

wnspmat3

Sparse matrix data structures and operations

Usage

#include <wn/wnspmat.h>

typedef struct wn_sparse_matrix_struct
{
int len_i,len_j;
wn_sll *i_lists,*j_lists; /* list of entries */

wn_memgp group;
} *wn_sparse_matrix;

typedef struct wn_sparse_matrix_entry_struct
{
double value;

int i,j;

ptr baggage;
} *wn_sparse_matrix_entry;

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.

Releases

5 releases since Debian 2.1 (Slink); the text changed 1 time.

  1. 2.1
  2. 2.2–4.0

Bugs

Much of this code is not extensively tested.

Author

Will Naylor

From libwn-dev 6.0-17 in Debian 4.0 (Etch). Parsed by carta from the page's man source.