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) ;)