Differences

This shows you the differences between two versions of the page.

 matrix_transpose [2016/10/02 15:47]nikolaj matrix_transpose [2016/10/02 16:16]nikolaj Both sides previous revision Previous revision 2016/10/02 16:16 nikolaj 2016/10/02 15:50 nikolaj 2016/10/02 15:47 nikolaj 2016/10/02 15:45 nikolaj 2016/10/02 15:27 nikolaj 2016/10/02 15:26 nikolaj 2016/10/02 15:24 nikolaj 2016/10/02 15:22 nikolaj 2014/03/21 11:11 external edit2013/09/17 23:33 nikolaj 2013/09/17 23:32 nikolaj 2013/09/17 23:32 nikolaj 2013/09/17 23:31 nikolaj 2013/09/17 23:28 nikolaj 2013/09/17 23:28 nikolaj 2013/09/17 23:28 nikolaj 2013/09/17 23:27 nikolaj 2013/09/17 23:27 nikolaj created Next revision Previous revision 2016/10/02 16:16 nikolaj 2016/10/02 15:50 nikolaj 2016/10/02 15:47 nikolaj 2016/10/02 15:45 nikolaj 2016/10/02 15:27 nikolaj 2016/10/02 15:26 nikolaj 2016/10/02 15:24 nikolaj 2016/10/02 15:22 nikolaj 2014/03/21 11:11 external edit2013/09/17 23:33 nikolaj 2013/09/17 23:32 nikolaj 2013/09/17 23:32 nikolaj 2013/09/17 23:31 nikolaj 2013/09/17 23:28 nikolaj 2013/09/17 23:28 nikolaj 2013/09/17 23:28 nikolaj 2013/09/17 23:27 nikolaj 2013/09/17 23:27 nikolaj created Line 10: Line 10: == Code == == Code == <​code>​ <​code>​ - M = {{a, b, c}, {x, y, z}}; + mm = {{a, b, c}, {x, y, z}}; - TM = Transpose[M]; + tm = Transpose[mm]; - M // MatrixForm + mm // MatrixForm - TM // MatrixForm + tm // MatrixForm ​ <​code/​Haskell>​ <​code/​Haskell>​ --\$ idris -p contrib --\$ idris -p contrib + --\$ :l this_module.idr import Data.Matrix import Data.Matrix - m : Matrix 3 2 Nat + mm : Matrix 3 2 Nat - m = [[3,​5],​[1,​5],​[2,​1]] + mm = [[3,​5],​[1,​5],​[2,​1]] tm : Matrix 2 3 Nat tm : Matrix 2 3 Nat - tm = transpose ​m + tm = transpose ​mm