[Numpy-discussion] My identity

Citi, Luca lciti@essex.ac...
Mon Jul 20 15:44:47 CDT 2009

Just my 2 cents.
It is duplicated code.
But it is only 3 lines.
"identity" does not need to handle rectangular matrices and non-principal diagonals, 
therefore it can be reasonably faster (especially for small matrices, I guess).

More information about the NumPy-Discussion mailing list