[SciPy-user] Concatenating 1D arrays

Rudolph van der Merwe rudolphv at gmail.com
Wed Feb 8 06:16:00 CST 2006


> The way I prefer is to initialize x and y with full dimension and "fill"
> it. This is imho easier to read and shorter.

The problem is that the full dimension, i.e. number of vectors to be
concatenated is not known apriori. I know that growing arrays in-place
as apposed to filling a pre-sized array is very inefficient in Matlab
(is this also the case for Numpy?), but sometimes it cannot be
avoided.

R.

--
Rudolph van der Merwe



More information about the SciPy-user mailing list