Re: [Numpy-discussion] Flattening an array

2009-12-09 Thread Charles R Harris
On Tue, Dec 8, 2009 at 5:29 PM, Jake VanderPlas wrote: > Hello, > I have a function -- call it f() -- which takes a length-N 1D numpy > array as an argument, and returns a length-N 1D array. > I want to pass it the data in an N-D array, and obtain the N-D array > of the result. > I've thought abo

Re: [Numpy-discussion] Flattening an array

2009-12-08 Thread josef . pktd
On Tue, Dec 8, 2009 at 7:29 PM, Jake VanderPlas wrote: > Hello, > I have a function -- call it f() -- which takes a length-N 1D numpy > array as an argument, and returns a length-N 1D array. > I want to pass it the data in an N-D array, and obtain the N-D array > of the result. > I've thought abou

[Numpy-discussion] Flattening an array

2009-12-08 Thread Jake VanderPlas
Hello, I have a function -- call it f() -- which takes a length-N 1D numpy array as an argument, and returns a length-N 1D array. I want to pass it the data in an N-D array, and obtain the N-D array of the result. I've thought about wrapping it as such: #python code: from my_module import f # ta