[Tutor] Matrix Transpose
Erik Price
erikprice at mac.com
Fri Aug 29 12:18:37 EDT 2003
On Friday, August 29, 2003, at 09:13AM, G Kiran <goki75 at vsnl.net> wrote:
>I was writing a small module to input a m x n matrix and print out the
>transpose of it
>how do i check if any of the rows has more elements than others
>
>if i have
>1,2,3
>1,2,3,4
>4,5,6,7
>
>i want
>
>1,1,4
>2,2,5
>3,3,6
>0,4,7
Have you seen the built-in "zip" function? It does something similar to this, but I must confess I don't know enough about matrix transposition ( ;) ) to tell if it does what you are asking.
Erik
More information about the Tutor
mailing list