Matrix transposition: Difference between revisions

Content deleted Content added
Rahul (talk | contribs)
Line 284: Line 284:
for i in 1 to 5 do for j in 1 to 4 do m[i][j] = pow i j
for i in 1 to 5 do for j in 1 to 4 do m[i][j] = pow i j
m = transpose m
m = transpose m

=={{header|Nial}}==
make an array
|a := 2 3 reshape count 6
=1 2 3
=4 5 6
transpose it
|transpose a
=1 4
=2 5
=3 6


=={{header|OCaml}}==
=={{header|OCaml}}==