public function getColumn(int $j) : array { if ($j >= $this->n) { throw new Exception\MatrixException("Column {$j} does not exist"); } return array_column($this->A, $j); }