TP _ _ _ _ _ _ _ _ _ _ _ _ operator
The tp operator returns the transpose of its matrix argument.
tp<identifier> or tp(<identifier>)
<identifier> must be a matrix, which either has had its dimensions set in its declaration, or has had values put into it by mat.
matrix m,n; m := mat((1,2,3),(4,5,6))$ n := tp m; N(1,1) := 1 N(1,2) := 4 N(2,1) := 2 N(2,2) := 5 N(3,1) := 3 N(3,2) := 6
In an assignment statement involving tp, the matrix ident ifier on the left-hand side is redimensioned to the correct size for the transpose.