Identity matrix

From Rosetta Code
Revision as of 23:00, 19 March 2012 by rosettacode>Kernigh (Build an identity matrix.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Identity matrix is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Build an identity matrix of a size known at runtime. An identity matrix is a square matrix, of size n × n, where the diagonal is all