up previous next
Identity

the identity matrix
Syntax

Identity(N:INT):MAT


Description
This function returns the NxN identity matrix.

Example
  Identity(3);
Mat([
  [1, 0, 0],
  [0, 1, 0],
  [0, 0, 1]
])
-------------------------------