GenerateIdentityMatrix

< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(idenMat:array) GenerateIdentityMatrix height:short 
(idenMat:array) IdentityMat height:short

Returns a square (n×n) matrix with each element along the diagonal (from top-left to bottom-right) filled with a 1, and every other element with 0.