SparseSquareMatrix Class

Represents a sparse, square matrix.

Definition

Namespace: Meta.Numerics.Matrices
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public sealed class SparseSquareMatrix : AnySquareMatrix
Inheritance
Object    AnyMatrixDouble    AnyRectangularMatrix    AnySquareMatrix    SparseSquareMatrix

Remarks

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.

Constructors

SparseSquareMatrix Initializes a new sparse, square matrix.

Properties

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)

Methods

Column Gets the specified column.
(Overrides AnyRectangularMatrixColumn(Int32))
Copy Copies the matrix.
Equals(AnyMatrixT) Determines whether the given matrix equals the current matrix.
(Inherited from AnyMatrixT)
Equals(Object) Determines whether the given object is an equal 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)
GetTypeGets 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)
ToStringReturns a string that represents the current object.
(Inherited from Object)
Trace Computes the trace of the square matrix.
(Inherited from AnySquareMatrix)

Operators

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.

See Also