Hello community I am new here and I have a question which might be pretty basic.
So I am trying to solve an equation. I have 3 matrices
A = \begin{pmatrix}1&0&0&0&0&0&0&0\\0&1&1&0&0&0&0&0\end{pmatrix}
B = \begin{pmatrix}0&0&0&0&0&0&1&0\\0&0&0&0&0&0&0&1\end{pmatrix}
and K = \begin{pmatrix}1&0&0&0&0&0&0&0\\0&1&1&0&0&0&0&0\\0&0&0&0&0&0&1&0\end{pmatrix}
H = \begin{pmatrix}A\\B\end{pmatrix}
and Z = \begin{pmatrix}z1\\z2\\z3\end{pmatrix}
And I have linear system
$\begin{pmatrix}H\\K\end{pmatrix} v = \begin{pmatrix}0\\Z\end{pmatrix}$
It says that solution for determined system is
$ v = \begin{bmatrix}\begin{pmatrix}H\\K\end{pmatrix}^T \begin{pmatrix}H\\K\end{pmatrix} \end{bmatrix} ^{-1}\begin{pmatrix}H\\K\end{pmatrix}^T \begin{pmatrix}0\\Z\end{pmatrix} $
Okay when I put this system of matrices in python it shows that matrix inside [] can't be inverse. I am presumping that
H = \begin{pmatrix}A\\B\end{pmatrix} just means that
H is
\begin{pmatrix}1&0&0&0&0&0&0&0\\0&1&1&0&0&0&0&0\\0&0&0&0&0&0&1&0\\0&0&0&0&0&0&0&1\end{pmatrix}
Two matrices put together. Same I presume for \begin{pmatrix}H\\K\end{pmatrix}
Where am I wrong?
Ps: sorry im new here hope I wrote everything correctly and understandable. Happy holidays everyone.