if((count($matrix1)!=count($matrix2)) || (count($matrix1[0])!=count($matrix2[0])))
        {
            $m1 = $this->toString($matrix1);
            $m2 = $this->toString($matrix2);
            throw new \Exception("The rows and/or columns '{$m1}' and '{$m2}' are not the same", Matrix::E_NOT_EQUAL);