[SciPy-user] Concatenate without making a copy? + sandbox: models
Robert Kern
robert.kern at gmail.com
Wed Jan 3 21:28:17 EST 2007
Vincent Nijs wrote:
> If:
>
> d = {'a':array([1,2,3]), 'b':array([4,3,5])}
>
> Is is possible to do something like c_[d['a'],d['b']] in scipy without
> making a copy?
No. In general the data will not be next to each other in memory, so they must
be copied to create a single concatenated array.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the SciPy-User
mailing list