SparseSquareMatrix Class |
Namespace: Meta.Numerics.Matrices
The SparseSquareMatrix type exposes the following members.
Name | Description | |
---|---|---|
SparseSquareMatrix |
Initializes a new sparse, square matrix.
|
Name | Description | |
---|---|---|
ColumnCount |
Gets the number of matrix columns.
(Inherited from AnySquareMatrix.) | |
Dimension |
Gets or sets the dimension of the square matrix.
(Overrides AnySquareMatrixDimension.) | |
FillCount |
Gets the number of non-zero matrix entries.
| |
FillFraction |
Gets the fraction of matrix entries that are non-zero.
| |
IsReadOnly |
Gets a flag indicating whether the matrix is read-only.
(Inherited from AnyMatrixT.) | |
Item |
Gets or sets the value of a matrix entry.
(Overrides AnyMatrixTItemInt32, Int32.) | |
RowCount |
Gets the number of matrix rows.
(Inherited from AnySquareMatrix.) |
Name | Description | |
---|---|---|
Column |
Gets a copy of the specified column.
(Overrides AnyRectangularMatrixColumn(Int32).) | |
Copy |
Copies the matrix.
| |
Equals(Object) |
Determines whether the given object is an equal matrix.
(Inherited from AnyMatrixT.) | |
Equals(AnyMatrixT) |
Determines whether the given matrix equals the current matrix.
(Inherited from AnyMatrixT.) | |
Fill |
Sets all matrix entries according to a supplied fill function.
(Inherited from AnyMatrixT.) | |
FrobeniusNorm |
Computes the Frobenius-norm of the matrix.
(Inherited from AnyRectangularMatrix.) | |
GetHashCode |
Not a valid operation.
(Inherited from AnyMatrixT.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InfinityNorm |
Computes the ∞-norm of the matrix.
(Inherited from AnyRectangularMatrix.) | |
MaxNorm |
Computes the max-norm of the matrix.
(Inherited from AnyRectangularMatrix.) | |
MultiplySelfByTranspose |
Computes the product of the matrix and its transpose.
(Inherited from AnyRectangularMatrix.) | |
MultiplyTransposeBySelf |
Computes the product of the matrix's transpose and itself.
(Inherited from AnyRectangularMatrix.) | |
OneNorm |
Computes the 1-norm of the matrix.
(Inherited from AnyRectangularMatrix.) | |
Row |
Gets a copy of the specified row.
(Overrides AnyRectangularMatrixRow(Int32).) | |
Solve |
Solves Ax = b using iterative methods.
| |
ToArray |
Copies the matrix into an array.
(Inherited from AnyMatrixT.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Trace |
Computes the trace of the square matrix.
(Inherited from AnySquareMatrix.) |
Name | Description | |
---|---|---|
Multiply(Double, SparseSquareMatrix) |
Multiplies a sparse matrix by a real scalar.
| |
Multiply(RowVector, SparseSquareMatrix) |
Multiplies a sparse matrix by a row vector.
| |
Multiply(SparseSquareMatrix, ColumnVector) |
Multiplies a column vector by a sparse matrix.
|
Many applications give rise to very large matrices which consist mostly of zero elements.
When working with sparse matrices, it is important to keep in mind that many operations do not respect sparsity. For example, the product of two sparse matrices is not necessarily sparse, nor is the inverse of a sparse matrix.