public function negate() : self
    {
        $b = [];

        foreach ($this->a as $value) {
            $b[] = -$value;
        }

        return static::quick($b);
    }
public function negate() : self
    {
        $b = [];

        foreach ($this->a as $value) {
            $b[] = -$value;
        }

        return static::quick($b);
    }
public function negate ( ) : self { $ b = [ ] ; foreach ( $ this -> a as $ value ) { $ b [ ] = - $ value ; } return static :: quick ( $ b ) ; }
Negate the vector i.e take the negative of each value elementwise.

@return self
Negate the vector i . e take the negative of each value elementwise .