Many matrix commands use expressions. A matrix expression may use the following operators, listed in descending order of operator precedence. Within a single level, operators associate from left to right.
()
and matrix construction {}
()
+
and -
:
**
and &**
*
and &*
, and division /
and &/
+
and subtraction -
< <= = >= > <>
NOT
AND
OR
and XOR
See Matrix Functions, for the available matrix functions. The remaining operators are described in more detail below.
Expressions appear in the matrix language in some contexts where there would be ambiguity whether ‘/’ is an operator or a separator between subcommands. In these contexts, only the operators with higher precedence than ‘/’ are allowed outside parentheses. Later sections call these restricted expressions.