SparseMatrix Class |
Namespace: FinMath.LinearAlgebra
[SerializableAttribute] public class SparseMatrix : ISerializable
The SparseMatrix type exposes the following members.
Name | Description | |
---|---|---|
![]() | SparseMatrix(Int32, Int32) |
Creates a new sparse matrix with given size.
|
![]() | SparseMatrix(SerializationInfo, StreamingContext) |
The object optimized deserialization method.
|
![]() | SparseMatrix(Int32, Int32, Int32) |
Creates a new sparse matrix with given size.
|
Name | Description | |
---|---|---|
![]() | Columns |
The number of columns in the matrix.
|
![]() | Density |
The density of the matrix (the ratio of number of nonzero elements
and size of the matrix).
|
![]() | Item |
Set or get an element of the matrix.
|
![]() | NumberOfNonZeros |
Number of nonzero matrix elements.
|
![]() | Rows |
The number of rows in the matrix.
|
![]() | Size |
Total number of elements in the matrix.
|
Name | Description | |
---|---|---|
![]() | Clone |
Creates a copy of this matrix.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetObjectData |
The object optimized serialization method.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | Load |
Loads SparseMatrix from CSV file.
|
![]() | Save |
Saves SparseMatrix into CSV file.
|
![]() | ToMatrix |
Returns dense representation of this matrix.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |