PermutationMatrix Constructor

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

PermutationMatrix(Int32) Constructs a new permutation matrix
PermutationMatrix(Permutation) Constructs a new permutation matrix

PermutationMatrix(Int32)

Constructs a new permutation matrix
C#
public PermutationMatrix(
	int rowCount
)

Parameters

rowCount  Int32
The number of rows and columns of the matrix.

Exceptions

ArgumentOutOfRangeException

rowCount is less than zero.

PermutationMatrix(Permutation)

Constructs a new permutation matrix
C#
public PermutationMatrix(
	Permutation permutation
)

Parameters

permutation  Permutation
The permutation that is equivalent to multiplying a vector or matrix on the left by the permutation matrix.

Exceptions

ArgumentNullException

permutation is null.

See Also