Re: [Numpy-discussion] How to combine a pair of 1D arrays?

2010-04-14 Thread Anne Archibald
On 14 April 2010 11:34, Robert Kern wrote: > On Wed, Apr 14, 2010 at 10:25, Peter Shinners wrote: >> Is there a way to combine two 1D arrays with the same size into a 2D >> array? It seems like the internal pointers and strides could be >> combined. My primary goal is to not make any copies of th

Re: [Numpy-discussion] How to combine a pair of 1D arrays?

2010-04-14 Thread Zachary Pincus
> On Wed, Apr 14, 2010 at 10:25, Peter Shinners > wrote: >> Is there a way to combine two 1D arrays with the same size into a 2D >> array? It seems like the internal pointers and strides could be >> combined. My primary goal is to not make any copies of the data. > > There is absolutely no way t

Re: [Numpy-discussion] How to combine a pair of 1D arrays?

2010-04-14 Thread Robert Kern
On Wed, Apr 14, 2010 at 10:25, Peter Shinners wrote: > Is there a way to combine two 1D arrays with the same size into a 2D > array? It seems like the internal pointers and strides could be > combined. My primary goal is to not make any copies of the data. There is absolutely no way to get around

[Numpy-discussion] How to combine a pair of 1D arrays?

2010-04-14 Thread Peter Shinners
Is there a way to combine two 1D arrays with the same size into a 2D array? It seems like the internal pointers and strides could be combined. My primary goal is to not make any copies of the data. It might be doable with a bit of ctypes if there is not a native numpy call. >>> import numpy as