Chapter 19. General Sparse Vectors and Matrices (.NET, C#, CSharp, VB, Visual Basic, F#)
NMath provides classes for storing general sparse vector and matrix data. By storing only the non-zero values, the storage savings are significant. Unlike the structured sparse matrices described in Chapter 17, where the zero elements are distributed according to some pattern, general sparse matrices make no assumptions about the sparsity structure of the matrix.
NMath also provides classes for computing and storing factorizations of general sparse matrices. Once a factorization is constructed, it can be reused to solve for different right-hand sides.
This chapter describes the NMath general sparse vector and matrix classes.