[Numpy-discussion] arange and linspace could take an output array

Carlos Pita carlosjosepita@gmail....
Wed Jul 4 01:32:32 CDT 2007


Hi all,
I have a few cases where an output array with samples for a linear envelope
should be composed by several linear segments, each one the output of arange
o linspace. It would be preferable in terms of performance to write this
segments directly to subviews of the output array instead of generating
temporary arrays and then copying them to the final one. So why don't
provide output arguments for arange and linspace?
Thank you in advance.
Cheers,
Carlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20070704/8bf862f4/attachment-0001.html 


More information about the Numpy-discussion mailing list