The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....

Format of the sparse matrix file

The first line of a sparse matrix file contains the unique identifier 'SLD_sparse_matrix'. This identifier is used by LoadSparseMat to ensure that the format is correct. The next line contains the number of non-zero elements of the sparse matrix. The next two lines contain the lowest and highest column and row indices. All other lines contain the matrix data using the format [ix,iy]=value. All lines may contain comments separated by double slashes.

The following example shows a small sample matrix :

12 // number of elements in sparse matrix 
2 9 // lowest and highest column 
1 10 // lowest and highest row 

Last Update: 2023-Feb-06