On Thu, Dec 1, 2011 at 10:52 AM, jonasr <jonas.rueb...@web.de> wrote:

>
> Hi,
> is there any possibility to define a numpy matrix, via a smaller given
> matrix, i.e. in matlab
> i can do this like
>
> a=[1 2 ; 3 4 ]
>
>
> A=[a a ; a a ]
>
> so that i finally get
>
> A=[ [1,2,1,2]
>      [3,4,3,4]
>      [1,2,1,2]
>      [3,4,3,4]]
>
> i tried different things on numpy which didn't work
> any ideas ?
>
> thank you
>
>
numpy.tile() might be what you are looking for.

Cheers!
Ben Root
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to