public function add(Vector $B) : Vector { if ($B->getN() !== $this->n) { throw new Exception\VectorException('Vectors must be the same length for addition'); } $R = Map\Multi::add($this->A, $B->getVector()); return new Vector($R); }