Click or drag to resize

DoubleCsrSparseMatrix Class

Class DoubleCsrSparseMatrix stores a general sparse matrix using Compressed Row (CSR) storage format.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreSparseMatrixDataCompressedSparseRowDouble, Double
    CenterSpace.NMath.CoreDoubleCsrSparseMatrix
      CenterSpace.NMath.CoreDoubleSymCsrSparseMatrix

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
[SerializableAttribute]
public class DoubleCsrSparseMatrix : SparseMatrixData<CompressedSparseRow<double>, double>, 
	IEquatable<DoubleCsrSparseMatrix>, ICloneable

The DoubleCsrSparseMatrix type exposes the following members.

Constructors
Properties
Methods
  NameDescription
Public methodStatic memberAdd(DoubleCsrSparseMatrix, DoubleCsrSparseMatrix)
Compute the sum of two sparse matrices. Performs the operation C = A + B, where C[i,j] = A[i,j] + B[i,j].
Public methodStatic memberAdd(DoubleCsrSparseMatrix, DoubleCsrSparseMatrix, Double)
Computes the some of a sparse matrix with the scalar multiple of another. Performs the operation C = A + beta*B where C[i,j] = A[i,j] + beta*B[i,j].
Public methodClone
Creates a deep copy of self.
Public methodStatic memberDivide
Divides a sparse matrix by a scalar.
Public methodEquals(Object)
Equals function for Compressed Row (CSR) formatted sparse matrices.
(Overrides SparseMatrixDataStorage, TypeEquals(Object).)
Public methodEquals(DoubleCsrSparseMatrix)
Equals function for Compressed Row (CSR) formatted sparse matrices.
Public methodGetHashCode
Gets the hash code for this instance.
(Overrides SparseMatrixDataStorage, TypeGetHashCode.)
Public methodStatic memberMultiply(Double, DoubleCsrSparseMatrix)
Multiply a scalar and a sparse matrix.
Public methodStatic memberMultiply(DoubleCsrSparseMatrix, Double)
Multiply a scalar and a sparse matrix.
Public methodScale
Scales each element in the matrix by the specified value.
Public methodStatic memberSubtract
Subtracts two sparse matrices.
Public methodCode exampleToCommaSeparated
Returns a formatted string representation of this matrix using commas and newlines.
(Inherited from SparseMatrixDataStorage, Type.)
Public methodCode exampleToCommaSeparated(String)
Returns a formatted string representation of this matrix using commas and newlines. Numbers are formatted using the specified format string.
(Inherited from SparseMatrixDataStorage, Type.)
Public methodToDenseMatrix
Converts this sparse matrix to a dense matrix.
Public methodCode exampleToString
Returns a formatted string representation of this matrix.
(Inherited from SparseMatrixDataStorage, Type.)
Public methodCode exampleToString(String)
Returns a formatted string representation of this matrix. Numbers are displayed using the specified format.
(Inherited from SparseMatrixDataStorage, Type.)
Public methodCode exampleToTabDelimited
Returns a formatted string representation of this matrix using tabs and newlines.
(Inherited from SparseMatrixDataStorage, Type.)
Public methodCode exampleToTabDelimited(String)
Returns a formatted string representation of this matrix using tabs and newlines. Numbers are formatted using the specified format string.
(Inherited from SparseMatrixDataStorage, Type.)
Public methodStatic memberTransposeAdd(DoubleCsrSparseMatrix, DoubleCsrSparseMatrix)
Computes the sum of the transpose of one sparse matrix with another sparse matrix. Performs the operation C = A' + B, where ' denotes transpose and C[i,j] = A[j,i] + B[i,j].
Public methodStatic memberTransposeAdd(DoubleCsrSparseMatrix, DoubleCsrSparseMatrix, Double)
Computes the sum of the transpose of one sparse matrix with a scalar multiple another sparse matrix. Performs the operation C = A' + beta*B, where ' denotes transpose and C[i,j] = A[j,i] + B[i,j].
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two sparse matrices.
Public operatorStatic memberDivision
Divides a sparse matrix by a scalar.
Public operatorStatic memberEquality
Equality operator for sparse matrices in compressed row (CSR) format.
Public operatorStatic memberInequality
Not equals operator for sparse matrices in compressed row (CSR) format.
Public operatorStatic memberMultiply(Double, DoubleCsrSparseMatrix)
Multiply a scalar and a sparse matrix.
Public operatorStatic memberMultiply(DoubleCsrSparseMatrix, Double)
Multiply a scalar and a sparse matrix.
Public operatorStatic memberSubtraction
Subtracts two sparse matrices.
Top
Fields
See Also