Back to the PSciCo homepage

A Matrix Library


This library defines an interface for matrices and includes a dense and sparse matrix implementation of the interface.

Relevant Files

  • TABLE.sml: Defines the interace.
  • Dense Matrices: Dense implementation of matrices of real numbers based on the Array2 structure from the basis library.
  • Sparse Matrices: Represents sparse matrices as a table of tables of reals. The toplevel table has an entry for each non-empty row, and each second-level table has an entry for each non-zero within the row. Currently the solve function only works on symmetric matrices.



    The PSCICO project is supported by NSF under the title "Advanced Languages for Scientific Computation Environments" as part of the Experimental Software Systems program within CISE. The grant number is 9706572.

    Back to the PSciCo homepage.