DenseMatrix<T>.GetIdentity Method

Returns an identity matrix of the specified dimension.

Definition

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static DenseMatrix<T> GetIdentity(
	int dimension
)

Parameters

dimension  Int32
An integer greater than 0.

Return Value

DenseMatrix<T>
A DenseMatrix<T> of the specified dimension that has ones on the main diagonal and is zero everywhere else.

See Also