Transpose an arbitrarily sized rectangular Matrix.




var [const] GSL=Import("zklGSL");	// libGSL (GNU Scientific Library)
GSL.Matrix(2,3).set(1,2,3, 4,5,6).transpose().format(5).println();  // in place
println("---");
GSL.Matrix(2,2).set(1,2, 3,4).transpose().format(5).println();  // in place
println("---");
GSL.Matrix(3,1).set(1,2,3).transpose().format(5).println();  // in place