CADability dotNET
Generates identity matrix

Namespace: CADability.LinearAlgebra
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public static Matrix Identity(
	int m,
	int n
)
Visual Basic
Public Shared Function Identity ( _
	m As Integer, _
	n As Integer _
) As Matrix
Visual C++
public:
static Matrix^ Identity(
	int m, 
	int n
)

Parameters

m
Type: System..::..Int32
Number of rows.
n
Type: System..::..Int32
Number of colums.

Return Value

An m-by-n matrix with ones on the diagonal and zeros elsewhere.

See Also