operator ~ method

Matrix operator ~()

Negate all values

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

Implementation

Matrix operator ~() {
  return this.map((x) => -x);
}