Returns an identity matrix of the specified size.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static DoubleMatrix Identity(
	int order
)
Visual Basic (Declaration)
Public Shared Function Identity ( _
	order As Integer _
) As DoubleMatrix
Visual C++
public:
static DoubleMatrix^ Identity(
	int order
)

Parameters

order
Type: System..::.Int32
The order of the matrix.

Return Value

A square order x order matrix with ones on the main diagonal and zeros elsewhere.

See Also