|
4.6.4 intmat operations
+
- addition with intmat or int; the int is converted into a diagonal intmat
-
- negation or subtraction with intmat or int; the int is converted into a
diagonal intmat
*
- multiplication with intmat, intvec, or int; the int is converted into a
diagonal intmat
div,/
- division of entries in the integers (omitting the remainder)
%, mod
- entries modulo int (remainder of the division)
<> , ==
- comparators
- intmat_expression
[ intvec_expression, intvec_expression ]
- is an intmat entry, where the first index indicates the row and the
second the column
Example:
|