Click or drag to resize

SparseMatrixDataStorage, Type Class

Class SparseMatrixData stores general sparse matrix data.
Inheritance Hierarchy

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.3
Syntax
[SerializableAttribute]
public class SparseMatrixData<Storage, Type>
where Storage : new(), Object, ISparseMatrixStorage<Type>

Type Parameters

Storage
Storage format (compressed row, for example).
Type
Values data type (double, for example).

The SparseMatrixDataStorage, Type type exposes the following members.

Constructors
  NameDescription
Public methodSparseMatrixDataStorage, Type
Constructs an empty SparseMatrixData instance.
Public methodSparseMatrixDataStorage, Type(Storage)
Constructs a SparseMatrixData instance with the given data.
Public methodSparseMatrixDataStorage, Type(IDictionaryIntPair, Type, Int32)
Constructs a SparseMatrixData instance from the given coordinate map format.
Public methodSparseMatrixDataStorage, Type(IDictionaryIntPair, Type, Int32, Int32)
Constructs a SparseMatrixData instance from the given coordinate map format.
Top
Properties
  NameDescription
Public propertyCols
Gets the number of columns in the matrix.
Public propertyData
Gets and sets the formatted data for the matrix.
Public propertyItem
Gets and sets the value at the given matrix position.
Public propertyRows
Gets the number of rows in the matrix.
Top
Methods
  NameDescription
Public methodEquals
Equality function for general sparse matrices.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Gets the hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodCode exampleToCommaSeparated
Returns a formatted string representation of this matrix using commas and newlines.
Public methodCode exampleToCommaSeparated(String)
Returns a formatted string representation of this matrix using commas and newlines. Numbers are formatted using the specified format string.
Public methodCode exampleToString
Returns a formatted string representation of this matrix.
(Overrides ObjectToString.)
Public methodCode exampleToString(String)
Returns a formatted string representation of this matrix. Numbers are displayed using the specified format.
Public methodCode exampleToTabDelimited
Returns a formatted string representation of this matrix using tabs and newlines.
Public methodCode exampleToTabDelimited(String)
Returns a formatted string representation of this matrix using tabs and newlines. Numbers are formatted using the specified format string.
Top
Fields
  NameDescription
Protected fielddata_
The matrix data.
Top
See Also