public function augmentIdentity() : Matrix { if (!$this->isSquare()) { throw new Exception\MatrixException('Matrix is not square; cannot augment with the identity matrix'); } return $this->augment(MatrixFactory::identity($this->getM())); }