public function get(int $i) { if ($i >= $this->n) { throw new Exception\VectorException("Element {$i} does not exist"); } return $this->A[$i]; }