IMSL C# Numerical Library

SparseMatrix Members

SparseMatrix overview

Public Static Methods

Add Performs element-wise addition of two real sparse matrices A, B of type SparseMatrix, C \leftarrow \alpha A + \beta B.
MultiplyOverloaded. Multiply sparse matrix A and column array x, A x.
MultiplySymmetric Multiply sparse symmetric matrix A and column vector x.

Public Instance Constructors

SparseMatrix Overloaded. Initializes a new instance of the SparseMatrix class.

Public Instance Properties

NumberOfColumns The number of columns in the matrix.
NumberOfNonZeros The number of nonzeros in the matrix.
NumberOfRows The number of rows in the matrix.

Public Instance Methods

CheckSquareMatrix Check that the matrix is square.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
FrobeniusNorm Returns the Frobenius norm of the matrix.
Get Returns the value of an element in the matrix.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
InfinityNorm Returns the infinity norm of the matrix.
MultiplyOverloaded. Multiply the matrix by a vector.
OneNorm Returns the matrix one norm of the sparse matrix.
PlusEquals Adds a value to an element in the matrix.
Set Sets the value of an element in the matrix.
ToDenseMatrix Returns the sparse matrix as a dense matrix.
ToSparseArray Returns the sparse matrix in the SparseArray form.
ToString (inherited from Object) Returns a String that represents the current Object.
Transpose Returns the transpose of the matrix.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

SparseMatrix Class | Imsl.Math Namespace | SparseCholesky | SuperLU | Example 1: Create from arrays | Example 2: Read Matrix Market format