[Numpy-discussion] speed up np.diag

Keith Goodman kwgoodman at gmail.com
Sat Jul 11 14:19:12 EDT 2009


On Sat, Jul 11, 2009 at 11:00 AM, Citi, Luca<lciti at essex.ac.uk> wrote:
> I have submitted Ticket #1167 with a patch
> to speed up diag and eye.
> On average the code is 3 times faster (but
> up to 9!).

Wow! That's great.

With your speed ups it won't be long before I use np.diag(np.eye(10))
instead of np.ones(10)  ;)



More information about the NumPy-Discussion mailing list