Generate identity matrix
[Visual Basic]Public Shared Function Identity( _
ByVal m As Integer, _
ByVal n As Integer _
) As GeneralMatrix
ByVal m As Integer, _
ByVal n As Integer _
) As GeneralMatrix
Parameters
- m
- Number of rows.
- n
- Number of colums.
Return Value
An m-by-n matrix with ones on the diagonal and zeros elsewhere.