I am at moment trying to solve a system of linear equations, and I am not sure if the value I retrieve is even possible, or my program returns some garbage value...
The equation I am trying to solve is:
$$ J(q){\rm d}q = {\rm d}u $$ where $J(q) \in\mathbb R^{6\times 7}$, ${\rm d}u\in\mathbb R^6$ and ${\rm d}q$ is the unknown.
So since I have to solve for ${\rm d}q$ I expects its size to be $7\times 1$, as it is the only size that will fit the equation.
The way I solve it by inverting $J(q)$ and multiply it with ${\rm d}u$ $$ {\rm d}q = J(q)^{-1}{\rm d}u $$ but when I then look at the size of the matrix I see that ${\rm d}q$ is sized $6\times 1$.
Am I doing something wrong here?