inverts the pitches; eg 11 becomes 0, 10 becomes 1 etc.
@return [type] [description]
770885
public function invert() {
		$func = function($n){return 11 - $n;};
		$this->tones = array_map($func, $this->tones);
	}
785451
function getPitches($preferredAlteration = 1, $normalize = true) {
		if (empty($this->root)) {
			throw new \ScalePitchesInRootlessScaleException();
		}
		$pitches = array();
		for ($i = 0; $i < 12; $i++) {
			if ($this->direction == self::ASCENDING) {
				$offset = $i;
			} else {
				$offset = 12 - $i;
			}
			if ($this->scale & (1 << $offset)) {
				$newroot = clone $this->root;
				$newroot->transpose($i, $preferredAlteration);
				$pitches[] = $newroot;
			}
		}
		if ($normalize) {
			$pitches = $this->normalizeScalePitches($pitches);
		}

		return $pitches;
	}
174911
public function reversed(): Map
    {
        $reversed = new self();
        $reversed->pairs = array_reverse($this->pairs);

        return $reversed;
    }
1153103
public boolean invert() {
        double determinant = determinant();
        if (Math.abs(determinant) <= Double.MIN_VALUE) {
            return false;
        }

        double t00 = m00;
        double t01 = m01;
        double t02 = m02;
        double t10 = m10;
        double t11 = m11;
        double t12 = m12;

        m00 =  t11 / determinant;
        m10 = -t10 / determinant;
        m01 = -t01 / determinant;
        m11 =  t00 / determinant;
        m02 = (t01 * t12 - t11 * t02) / determinant;
        m12 = (t10 * t02 - t00 * t12) / determinant;

        return true;
    }
234499
def pitch(self):
    

    x, y, z, w = self.x, self.y, self.z, self.w
    return math.atan2(2*x*w - 2*y*z, 1 - 2*x*x - 2*z*z)
478134
function symmetries() {
		$rotateme = $this->scale;
		$symmetries = array();
		for ($i = 0; $i < 12; $i++) {
			$rotateme = BitmaskUtils::rotateBitmask($rotateme);
			if ($rotateme == $this->scale) {
				if ($i != 11) {
					$symmetries[] = $i+1;
				}
			}
		}
		return $symmetries;
	}
35332
public void reverse() {
		for (int i = 0; i < size / 2; i++) {
			T tmp = data[i];
			data[i] = data[size - i - 1];
			data[size - i - 1] = tmp;
		}
	}
927375
@Override
  public IVersionRange invert() {
    IVersionRange irange1 = range1.invert();
    IVersionRange irange2 = range2.invert();
    return new OrRange(irange1, irange2);
  }
780226
public function inverse() : self
    {
        $b = self::identity($this->m)
            ->augmentLeft($this)
            ->rref();

        $c = [];

        foreach ($b as $row) {
            $c[] = array_slice($row, $this->n);
        }

        return self::quick($c);
    }
867137
public AsciiSet invert() {
    final boolean[] invertMembers = new boolean[128];
    for (int i = 0; i < invertMembers.length; ++i) {
      invertMembers[i] = !members[i];
    }
    return new AsciiSet(invertMembers);
  }
691936
public void invert() {
		final PT p = this.startingPoint;
		this.startingPoint = this.endingPoint;
		this.endingPoint = p;
		final int middle = this.segmentList.size() / 2;
		ST segment;
		for (int i = 0, j = this.segmentList.size() - 1; i < middle; ++i, --j) {
			segment = this.segmentList.get(i);
			this.segmentList.set(i, this.segmentList.get(j));
			this.segmentList.set(j, segment);
		}
	}
1045040
function xOffset()
    {
        $xOffset = $this->ez['xOffset'];
        if ( $xOffset == 0 ||
             $this->leftMargin() > $this->ez['xOffset'] )
        {
            $xOffset = $this->leftMargin();
        }
        return $xOffset;
    }
416883
public function additiveInverse(): Decimal
    {
        if ($this->isZero()) {
            return $this;
        } elseif ($this->isNegative()) {
            $value = \substr($this->value, 1);
        } else { // if ($this->isPositive()) {
            $value = '-' . $this->value;
        }

        return new static($value, $this->scale);
    }
62548
def invert(interval):
    
    interval.reverse()
    res = list(interval)
    interval.reverse()
    return res
465937
def _invert_all(self):
        """"""
        set = self._datastore.setbyte
        get = self._datastore.getbyte
        for p in xrange(self._datastore.byteoffset, self._datastore.byteoffset + self._datastore.bytelength):
            set(p, 256 + ~get(p))
133656
public function primeForm() {
		$pcs = new \ianring\PitchClassSet($this->scale);
		$p = $pcs->primeFormRing();
		return $p;
	}
89842
public static function invertBits($n){
		$bits = \floor(\log($n, 2)) + 1;
		$mask = (1 << $bits) - 1;
		return $n ^ $mask;
	}