[Numpy-discussion] My identity

Citi, Luca lciti at essex.ac.uk
Mon Jul 20 16:44:47 EDT 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