Re: [Numpy-discussion] How to share memory when bArr is smaller-sized than aArr

2006-08-14 Thread Travis Oliphant
Sebastian Haase wrote: > Hi, > in numarray I could do this > import numarray as na a = na.arange(10) b = na.array(a._data, type=na.int32, shape=8) > > b would use the beginning part of a. > > This is actually important for inplace FFT (where in real-to-complex-fft th

[Numpy-discussion] How to share memory when bArr is smaller-sized than aArr

2006-08-14 Thread Sebastian Haase
Hi, in numarray I could do this >>> import numarray as na >>> a = na.arange(10) >>> b = na.array(a._data, type=na.int32, shape=8) b would use the beginning part of a. This is actually important for inplace FFT (where in real-to-complex-fft the input has 2 "columns" more memory than the output)