A general real sparse matrix intended to be efficiently and easily updated.
For a list of all members of this type, see SparseMatrix Members.
System.Object
Imsl.Math.SparseMatrix
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
A SparseMatrix
can be constructed from a set of arrays, or it can be abstractly created as an empty array and then incrementally built into final form. It is usually easier to create an empty SparseMatrix
of a set size and then use the Set
method to set the elements of the array. When setting the elements of the sparse array, their positions should be thought of as their positions in the dense array. Elements can be set in any order, but only the elements actually set are stored.
This class includes methods to update the sparse matrix. There are also methods to multiply a sparse matrix and a vector or to multiply two sparse matrices. To solve a sparse linear system use SparseCholesky
or SuperLU
.
Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll)
SparseMatrix Members | Imsl.Math Namespace | SparseCholesky | SuperLU | Example 1: Create from arrays | Example 2: Read Matrix Market format