Method code for $math.ident_mat()

[Turn on line numbering]
arg n;
var x, y;

return map x in [1 .. n] to (map y in [1 .. n] to (x == y ? 1.0 : 0.0));

// Miroslav Silovic
// Created 19-Oct-1996 as a part of ColdCore, see: @help Credit

Tlon