SquareMatrix Class

Represents a square matrix.

Definition

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

Constructors

SquareMatrix(Double) Initializes a new square matrix from the given 2D array.
SquareMatrix(Int32) Initializes a new square matrix.

Properties

ColumnCount Gets the number of matrix columns.
(Inherited from AnySquareMatrix)
Dimension Gets the dimension of the matrix.
(Overrides AnySquareMatrixDimension)
IsReadOnly Gets a flag indicating whether the matrix is read-only.
(Inherited from AnyMatrixT)
Item Gets or sets an entry of the matrix.
(Overrides AnyMatrixTItemInt32, Int32)
RowCount Gets the number of matrix rows.
(Inherited from AnySquareMatrix)
Transpose Gets the transpose of the matrix.

Methods

Column Gets a copy of one column of the the matrix.
(Overrides AnyRectangularMatrixColumn(Int32))
Copy Copies the matrix.
Eigendecomposition Computes the eigenvalues and eigenvectors of the matrix.
Eigenvalues Computes the eigenvalues of 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.
(Overrides AnyRectangularMatrixInfinityNorm)
Inverse Computes the inverse of the matrix.
LUDecomposition Computes the LU decomposition of the matrix.
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.
(Overrides AnyRectangularMatrixOneNorm)
Power Computes the matrix raised to the given power.
QRDecomposition Computes a QR decomposition of the matrix.
Row Returns a vector representing a given row of the matrix.
(Overrides AnyRectangularMatrixRow(Int32))
SingularValueDecomposition Computes the singular value decomposition of the square matrix.
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

Addition(SquareMatrix, SquareMatrix) Adds two real, square matrices.
Division(SquareMatrix, Double) Divides a real, square matrix by a real constant.
Multiply(Double, SquareMatrix) Multiply a real, square matrix by a real constant.
Multiply(SquareMatrix, ColumnVector) Computes the product of a square matrix and a column vector.
Multiply(SquareMatrix, SquareMatrix) Computes the product of two square matrices.
Subtraction(SquareMatrix, SquareMatrix) Computes the difference of two square matrices.
UnaryNegation(SquareMatrix) Negates a real, square matrix.

See Also