On Jun 6, 2012, at 11:41 AM, Eric Firing wrote:

> Since we end up needing float64 anyway:
> 
> In [3]: %timeit l=np.empty(10000,dtype=np.float64); l.fill(3)
> 100000 loops, best of 3: 14.1 us per loop

nice, fill and empty seem to be responsible for about half the speed up each, 
good tools to know about. 
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to