[Numpy-discussion] My identity

Keith Goodman kwgoodman@gmail....
Mon Jul 20 16:18:39 CDT 2009

On Mon, Jul 20, 2009 at 1:44 PM, Citi, Luca<lciti@essex.ac.uk> wrote:
> 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).

I think that's the best trade-off too.

More information about the NumPy-Discussion mailing list