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

Carlos Pita carlosjosepita at gmail.com
Wed Jul 4 02:32:32 EDT 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20070704/8bf862f4/attachment.html>

More information about the NumPy-Discussion mailing list