GeneralMatrix.Identity Method

DotNetMatrix

An NDoc Documented Class Library

GeneralMatrix.Identity Method 

Generate identity matrix

[Visual Basic]Public Shared Function Identity( _
   ByVal m As Integer, _
   ByVal n As Integer _
) As GeneralMatrix
[C#]
public static GeneralMatrix Identity(
   int m,
   int n
);

Parameters

m
Number of rows.
n
Number of colums.

Return Value

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

See Also

GeneralMatrix Class | DotNetMatrix Namespace