public static eye(size as Long) as NDArray<T>
Creates a new NDArray with ones on the diagonal and zeros elsewhere.
size
A new identity matrix.
arr = NDArray<Int>.eye(3)