Click or drag to resize

SparseMatrix Class

A class of sparse matrix.
Inheritance Hierarchy
SystemObject
  FinMath.LinearAlgebraSparseMatrix

Namespace:  FinMath.LinearAlgebra
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
[SerializableAttribute]
public class SparseMatrix : ISerializable

The SparseMatrix type exposes the following members.

Constructors
  NameDescription
Public methodSparseMatrix(Int32, Int32)
Creates a new sparse matrix with given size.
Public methodSparseMatrix(SerializationInfo, StreamingContext)
The object optimized deserialization method.
Public methodSparseMatrix(Int32, Int32, Int32)
Creates a new sparse matrix with given size.
Top
Properties
  NameDescription
Public propertyColumns
The number of columns in the matrix.
Public propertyDensity
The density of the matrix (the ratio of number of nonzero elements and size of the matrix).
Public propertyItem
Set or get an element of the matrix.
Public propertyNumberOfNonZeros
Number of nonzero matrix elements.
Public propertyRows
The number of rows in the matrix.
Public propertySize
Total number of elements in the matrix.
Top
Methods
  NameDescription
Public methodClone
Creates a copy of this matrix.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetObjectData
The object optimized serialization method.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberLoad
Loads SparseMatrix from CSV file.
Public methodSave
Saves SparseMatrix into CSV file.
Public methodToMatrix
Returns dense representation of this matrix.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also