How to create 3 dimension array from 1 & 2 dimension arrray

Klaus Bruns Klaus.Bruns at teleatlas.com
Fri Apr 27 05:26:01 EDT 2001


Tawee Laoitichote wrote:

> Dear,
>
> I have 1 dimension array having shape like (3,) and 2 dimension array;
> (4,4). Then, I want to create new array from these two arrays having new
> dimension as (3,4,4), Help please!

try this:

>>> l1 = (3,)
>>> l2 = (4,4)
>>> l1 + l2
(3, 4, 4)
>>>




More information about the Python-list mailing list