Matthias Michler wrote:
> ...
> for i in xrange(len(matrix3[:, 0])): # all rows
>     for j in xrange(len(matrix3[0, :])):# all columns
> ...

if your matrices a and b are rectangular (and i think the "diagonal"
makes only sense in this case), you can also say:

array([list(a[i,:i])+list(b[i,i:]) for i in range(a.shape[0])])

best,
sebastian.



p.s.: i think it would be a nice feature to put
"matplotlib-users@lists.sourceforge.net" as reply-to in the mails
distributed via the list -- i keep hitting the 'reply'-button and wonder
why my mails do not show up in the list...

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to