Wednesday, May 13, 2015

SpQ15 Arithmetic & Logical Operators

jit.op help is great place for list of arithmetic operators

make jit.matrix my_matrix 1 float32 2 2
Creates a 2x2 jit.matrix object containing floats.

float32 vs. char (which yields integers in Max)

! means not, generally, in computer programming

wrap is like the floating-point modulo (modulo likes integers)

expr $i1 will give you result of arithmetic calculation

! not operator gives you a zero unless it receives a zero, in which case it outputs something--it's about zero vs. non zeros

&& is "and"
|| is "or"

No comments:

Post a Comment