DADiSP Worksheet Functions > Function Categories > Matrix Math and Special Matrices > TRANSPOSE

 

TRANSPOSE

Purpose:

Swaps the rows and columns of a specified table.

Syntax:

TRANSPOSE(a)

a

-

An array or series.

Returns:

An NxM array where the input is an MxN array.

Example:

W1: {{1, 2, 3},

     {1, 2, 3}, 

     {1, 2, 3}} 

 

W2: transpose(W1)

 

W2 == {{1, 1, 1},

       {2, 2, 2}, 

       {3, 3, 3}} 

Remarks:

The postfix ' operator is equivalent to transpose. For example:

 

a = transpose(b)

a = b’

 

Are equivalent.

 

See TRANSPOSECONJ to perform the conjugate transpose of a matrix.

See Also:

*^ (Matrix Multiply)

\^ (Matrix Solve)

' (Matrix Transpose)

~^ (Matrix Conjugate Transpose)

MMULT

RAVEL

TRANSPOSECONJ