Copies a transposed source matrix into a target matrix.
Mat Trans a()=b()
a(),b():one- or two-dimensional floating point array
Mat Trans a()=b() copies the transposed matrix b() into matrix a(), assuming that both a() and b() are dimensioned appropriately, that is to say the number of rows in a() must correspond to the number of columns in b(), and the number of columns in a() must correspond to the number of rows in b() (for example Dim a(n,m),b(m,n)).
Global Double a(1 To 4, 1 To 3)
Global Double b(1 To 3, 1 To 4)
Mat Set a() = 2
Mat Set b() = 5
Mat Print a()
Mat Print b()
Mat Trans a() = b()
Mat Print a()
Defines a square matrix, that is to say, a matrix with the same number of rows and columns so that Mat Trans a() can be used. This command swaps the rows and columns in matrix a() and writes the modified matrix back to a(). The original matrix a() is thereby lost. (However, it can be restored by performing Mat Trans a() again.)
{Created by Sjouke Hamstra; Last updated: 15/10/2014 by James Gaite}