UnitMatrixOfDimension Method

Returns a unit matrix of the given dimension.

Definition

Namespace: Meta.Numerics.Matrices
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static UnitMatrix OfDimension(
	int n
)

Parameters

n  Int32
The dimension of the matrix.

Return Value

UnitMatrix
A read-only unit matrix of dimension n.

Exceptions

ArgumentOutOfRangeExceptionn is non-positive.

See Also