DADiSP Worksheet Functions > Function Categories > Matrix Math and Special Matrices > ' (Matrix Transpose)

 

' (Matrix Transpose)

Purpose:

Swaps the rows and columns of a specified array.

Syntax:

A'

A

-

An array or series.

Alternate Syntax:

A.'

Returns:

An NxM array where the input is an MxN array.

Example:

W1: {{1, 2, 3},

     {1, 2, 3}, 

     {1, 2, 3}} 

 

W2: W1'

 

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

       {2, 2, 2}, 

       {3, 3, 3}}

Remarks:

Both the postfix ' operator and the .’ operator are equivalent to TRANSPOSE. For example:

 

a = transpose(b)

a = b'

a = b.’

 

are equivalent.

 

See the postfix ~^ operator to perform a complex conjugate transpose.

See Also:

*^ (Matrix Multiply)

\^ (Matrix Solve)

~^ (Matrix Conjugate Transpose)

MMULT

RAVEL

TRANSPOSE

TRANSPOSECONJ