I am currently looking for method in which i can interleave 2 numpy.ndarray. such that
>>> a = np.random.rand(5,5)
>>> print a
[[ 0.83367208 0.29507876 0.41849799 0.58342521 0.81810562][ 0.31363351 0.69468009 0.14960363 0.7685722 0.56240711][ 0.49368821 0.46409791 0.09042236 0.68706312 0.98430387][ 0.21816242 0.87907115 0.49534121 0.60453302 0.75152033][ 0.10510938 0.55387841 0.37992348 0.6754701 0.27095986]]
>>> b = np.random.rand(5,5)
>>> print b
[[ 0.52237011 0.75242666 0.39895415 0.66519185 0.87043142][ 0.08624797 0.66193953 0.80640822 0.95403594 0.33977566][ 0.13789573 0.84868366 0.09734757 0.06010175 0.48043968][ 0.28871551 0.62186888 0.44603741 0.3351644 0.6417847 ][ 0.85745394 0.93179792 0.62535765 0.96625077 0.86880908]]
>>>
print c shoule be interleaving each row both matrices
[ 0.83367208 0.52237011 0.29507876 0.75242666 0.41849799 0.39895415 0.58342521 0.66519185 0.81810562 0.87043142]
I have three in total which should be interleaved, but i guess it would be easier to do it two at a time..
but how do i do it easily.. I read some method which used arrays, but i am not sure to do it with ndarrays?