Elementwise arithmetic

  • arithmetic operators: + - * / %
  • relational operators < <= == > >=
  • operators apply to corresponding elements intVector A(10), B(10), C(10); booleanVector result(10); . . . A = B * 4 - C / 3; . . . result = (B*B - 4 * A * C >= 0);
    next...
    prev...
    begin lecture again...