eye

The template function returns a two-dimensional array with ones on the main diagonal and zeros elsewhere.

T[][]
eye
(
T = double
)

Meta