Dyadic (Two-Argument) Form: Generalized Transpose AQB

94

The generalized transpose function interchanges the coordinates of argument B as

specified by argument A. Argument B can be any expression. Argument A must

be a vector or a scalar, and must have an element for each coordinate of argument B;

also, argument A must contain all the integers between 1 and the largest integer

specified. For example, to transpose the rows and columns of a matrix, argument A

would be 2 1:

To transpose the rows and columns of a 3-rank (three-coordinate) array, argument A

would be 1 3 2:

1.3

:I. 7

2 1.

E 4.. 2 3 14. p 1 2 14.

B

An array with two planes, three rows, and four columns.

The second and third coordinates have been interchanged,.

I

2 3 14.

6 ‘7 I3

1. 0 1. :I. 1.2

:I. 1.1 :I. f :I. 0

1 f3 1. 9 2 0

22 23 ;y.1.

:I. ;3 :?&I{

5 9

ci 1 0

7 1. 1.

13 1.2

forming an array with two planes, four rows, and three

1.3 1 ‘7 2 :I. columns.

:I. 4. :LEI 2 2

94

The generalized transpose function interchanges the coordinates of argument B as

specified by argument A. Argument B can be any expression. Argument A must

be a vector or a scalar, and must have an element for each coordinate of argument B;

also, argument A must contain all the integers between 1 and the largest integer

specified. For example, to transpose the rows and columns of a matrix, argument A

would be 2 1:

To transpose the rows and columns of a 3-rank (three-coordinate) array, argument A

would be 1 3 2:

1.3

:I. 7

2 1.

E 4.. 2 3 14. p 1 2 14.

B

An array with two planes, three rows, and four columns.

The second and third coordinates have been interchanged,.

I

2 3 14.

6 ‘7 I3

1. 0 1. :I. 1.2

:I. 1.1 :I. f :I. 0

1 f3 1. 9 2 0

22 23 ;y.1.

:I. ;3 :?&I{

5 9

ci 1 0

7 1. 1.

13 1.2

forming an array with two planes, four rows, and three

1.3 1 ‘7 2 :I. columns.

:I. 4. :LEI 2 2