2008/4/25 tournesol <[EMAIL PROTECTED]>:
> Hi All.
>
> Is there a easy way to insert 1D(j) array into another 2D array(B:jxk)
> and conver B to B:ixjxk ?
>
> ex:)
>
> >>> from numpy import *
> >>> a=arange(4)
> >>> a
> array([0, 1, 2, 3])
> >>> b=arange(9)
> >>> b.shape=3,3
> >>> b
> arr
Hi All.
Is there a easy way to insert 1D(j) array into another 2D array(B:jxk)
and conver B to B:ixjxk ?
ex:)
>>> from numpy import *
>>> a=arange(4)
>>> a
array([0, 1, 2, 3])
>>> b=arange(9)
>>> b.shape=3,3
>>> b
array([[0, 1, 2],
[3, 4, 5],
[6, 7, 8]])
I just wanna insert A into B
B:1x3x3,
[