[SciPy-user] Concatenate without making a copy? + sandbox: models

Travis Oliphant oliphant at ee.byu.edu
Wed Jan 3 21:33:03 CST 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?
> The models module expects data structured in dictionaries I believe.
You could not go backwards like this.  You would have to allocate the 
array for 'a' and 'b' as one big chunk and then assign 'a' and 'b' to 
parts of that original data. 


More information about the SciPy-user mailing list