PermutationMatrix Class

A permutation matrix.

Definition

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

Remarks

A d-dimensional permutation matrix is a d-dimensional representation of a permutation among d objects. When it right-multiplies a column vector, it permutes the entries of the vector. When it right-multiples a matrix, it permutes the columns of the matrix. When two permutation matrices are multiplied, the product is the permutation matrix corresponding to the right-to-left sequential application of the permutations they represent.

The entries of a permutation matrix are all either 0 or 1, and there is exactly one 1 in every row and column.

Properties

ColumnCount Gets the number of matrix columns.
(Inherited from AnySquareMatrix)
Dimension Gets or sets the dimension of the square matrix.
(Overrides AnySquareMatrixDimension)
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)
Transpose The transpose of the permutation matrix.

Methods

Column Gets the specified column.
(Inherited from AnyRectangularMatrix)
Eigenvalues Computes the eigenvalues of the permutation 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)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FrobeniusNorm Computes the Frobenius-norm of the matrix.
(Overrides AnyRectangularMatrixFrobeniusNorm)
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 Get the inverse of the permutation matrix.
MaxNorm Computes the max-norm of the matrix.
(Overrides AnyRectangularMatrixMaxNorm)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
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)
Row Gets a copy of the specified row.
(Inherited from AnyRectangularMatrix)
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)

See Also