The following tables list the members exposed by CSparseMatrix.
| Name | Description | |
|---|---|---|
| CSparseMatrix Constructor | Overloaded. |
| Name | Description | |
|---|---|---|
| Capacity | Gets or sets the number of elements that the internal storage of the sparse matrix can hold without resizing. Gets or sets the number of elements that the internal storage of the sparse matrix can hold without resizing. | |
| Cols | Gets or sets the number of sparse matrix columns. | |
| Data | This property is used while serializing and deserializing the CSparseMatrix and it is not intended to be used in user code. | |
| GrowFactor | Gets or sets the number by which the Capacity is multiplied whenever a greater internal storage for the matrix is needed. | |
| Hermitian | Indicates whether this instance represents a hermitian sparse matrix. | |
| Item | Gets or sets a single element of the sparse matrix. | |
| NumElements | Gets the number of elements contained in the internal storage of the sparse matrix. | |
| Rows | Gets or sets the number of sparse matrix rows. |
| Name | Description | |
|---|---|---|
| Add | Adds two sparse matrices. The operation is defined as: C=A+beta*op(B) | |
| Clone | Creates a deep copy of the current sparse matrix. | |
| Equals | Overloaded. Returns a value indicating if this sparse matrix is equal to another sparse matrix. | |
| FillRandom | Overloaded. Fills the CSparseMatrix object with random values ranging from 1 to 10 using a density of 1%. | |
| GetHashCode | ||
| GetObjectData | Implements the ISerializable interface and returns the data needed to serialize the CSparseMatrix class. | |
| Multiply | Overloaded. Returns a scalar-matrix product. | |
| Negate | Returns the negation of a sparse matrix. | |
| RemoveZeros | Overloaded. Removes all elements which are close to zero from the internal storage. | |
| ToDense | Converts the current instance to a dense matrix. | |
| ToString | Overloaded. Converts this instance of CSparseMatrix to a formatted string using the default values for format string, separator, left and right borders, and end of line characters. | |
| Transpose | Returns the transpose of the sparse matrix. |
| Adds two sparse matrices. | |
| Tests whether two CSparseMatrix objects represent equal matrices. | |
| Tests whether two CSparseMatrix objects represent non equal matrices. | |
| Overloaded. Multiplies two sparse matrices and result the result into another sparse matrix. | |
| Subtracts a sparse matrix from another sparse matrix. | |
| Negates a matrix. | |
| Returns a copy of the sparse matrix. |