9
Permute (continued)
To transpose an array, simply write
[1..n,1..n] A:=A#[Index2, Index1];
[1..3,1..3] A := A#[
,
]
To reverse
[1..n] V := V#[n-Index1+1]
The use of computable subscripts is
common and leads to optimizations
1 1 1
2 2 2
3 3 3
1 2 3
1 2 3
1 2 3