Returns an identity matrix of the specified dimension.

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Shared Function GetIdentity ( _
	dimension As Integer _
) As GeneralMatrix
C#
public static GeneralMatrix GetIdentity (
	int dimension
)
C++
public:
static GeneralMatrix^ GetIdentity (
	int dimension
)

Parameters

dimension (System.Int32)
An integer greater than 0.

Return Value

A GeneralMatrix of the specified dimension that has ones on the main diagonal and is zero everywhere else.