Let us consider a matrix $\mathbf{A} \in \mathbb{R}^{n \times n}$ and the block partitioning $$ \mathbf{A} = \begin{pmatrix} \mathbf{A}_{11} & \mathbf{A}_{12} \\ \mathbf{A}_{21} & \mathbf{A}_{22} \\ \end{pmatrix} $$ I have found some lecture notes that claim that the two conditions $$ \det(\mathbf{A}_{11}) \neq 0\quad \mathrm{and} \quad \det(\mathbf{A}_{22}) \neq 0 $$ are sufficient for the nonsingularity of $\mathbf{A}$. It seems to be false to me, as for example $$ \begin{pmatrix} 1 & 1 \\ 1 & 1 \\ \end{pmatrix} $$ verify the two conditions but is singular. Is there a missing condition or something?
Thanks!