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