Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
matrix_transpose [2016/10/02 15:45]
nikolaj
matrix_transpose [2016/10/02 16:16]
nikolaj
Line 10: Line 10:
 == Code == == Code ==
 <​code>​ <​code>​
-= {{a, b, c}, {x, y, z}}; +mm = {{a, b, c}, {x, y, z}}; 
-TM = Transpose[M];+tm = Transpose[mm];
  
-// MatrixForm +mm // MatrixForm 
-TM // MatrixForm+tm // MatrixForm
 </​code>​ </​code>​
  
 <​code/​Haskell>​ <​code/​Haskell>​
 --$ idris -p contrib --$ idris -p contrib
 +--$ :l this_module.idr
 import Data.Matrix import Data.Matrix
  
-: Matrix 3 2 Nat +mm : Matrix 3 2 Nat 
-= [[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 
-<code/Haskell>+</code>
  
 === Reference === === Reference ===
Link to graph
Log In
Improvements of the human condition