Syntax: |
vout = >−v
|
The reflect operator, >−
, is a unary operator that interchanges the
columns of a matrix.
Suppose the matrix M
has N rows and M columns.
Then >−M
is also an N by M matrix, but column 1 has been interchanged
with column M, column 2 has been interchanged with column M-1, and so on.
Examples
Suppose matrix M
is
| 1 10 -1 | M = | 2 20 -2 | | 3 30 -3 | | 4 40 -4 |then
| -1 10 1 | >-M = | -2 20 2 | | -3 30 3 | | -4 40 4 |
You can reflect the rows of a matrix, by using the reflect operator and the transpose operator.
Suppose M
is as above. Then
| 4 40 -4 | <-(>-(<-M)) = | 3 30 -3 | | 2 20 -2 | | 1 10 -1 |