|
From: Bill B. <wb...@gm...> - 2006-02-14 02:26:52
|
On 2/14/06, Tim Hochberg <tim...@co...> wrote: > > Bill Baxter wrote: > > > *Copying all the data of the input array seems wasteful when the array > > is just going to go out of scope. Or is this not something to be > > concerned about? > > You could try using copy=3DFalse: Lovely. That does the trick. And the syntax isn't so bad after defining a little helper like: def matr(a): return mat(a,copy=3DFalse) >>> t1.timeit(100) > 3.6538127052460578 > >>> t2.timeit(100) > 3.6567186611706237 > > I'd also like to point out that your computer appears to be much faster > than mine. Duly noted. :-) -tim --Bill |