operator ~ method

Vector operator ~()

Negate all values

This is the same as multiplying the vector with -1.

Implementation

Vector operator ~() {
  return map((x) => -x);
}