matrix.identity

Syntax

m = matrix.identity(i)

Get an identity matrix.

Returns:m - identity matrix
Arguments:i - dimension of the identity matrix (e.g., i = 3 results in a 3 × 3 identity matrix)