CC_IO is a FORTRAN90 library which reads and writes compressed column (CC) sparse matrix files.
An MxN sparse matrix of NCC nonzero entries in compressed column format is described by three items:
The nonzero entries of column J are stored in locations CCC(J) through CCC(J+1)-1 of ICC and ACC.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
CC_IO is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.
CC, a data directory which contains examples of the Compressed Column (CC) sparse matrix file format;
CC_TO_ST, a FORTRAN90 library which converts a sparse matrix from compressed column (CC) to sparse triple (ST) format.
HB_IO, a FORTRAN90 library which reads and writes sparse linear systems stored in the Harwell Boeing (HB) format for sparse matrices.
MM_IO, a FORTRAN90 library which reads and writes sparse linear systems stored in the Matrix Market (MM) format.
ST_IO, a FORTRAN90 library which reads and writes sparse linear systems stored in the Sparse Triplet (ST) format.
ST_TO_CC, a FORTRAN90 library which converts sparse matrix data from Sparse Triplet (ST) format to Compressed Column (CC) format.
Test #1 and #2 write and read back the information for the "simple" 5x5 matrix with 12 nonzero entries. There are files associated with this.
You can go up one level to the FORTRAN90 source codes.