Can vectors be inverted?

Vectors, in general, can't be inverted under matrix multiplication, as only square matricies can inverses. However, in the situation you've described, it's possible to compute $c$ anyway, assuming the equation is satisfied for some $c$. If we multiply both sides by $X^T$, the result is $x^T B^{-1} (x-\mu) = x^T x c = |x|^2 c$. Assuming x is not the zero vector (in which case any $c$ will still have $xc=0$ so any choice of $c$ should work), we just get $c= \frac{1}{|x|^2} x^T B^{-1} (x-\mu)$.

I must caution that the expression above for $c$ is defined even when there is no solution of the original equation, which will be almost all of the time for randomly generated vectors and matrices. Hence, if you are going to use it, you should check that this works by plugging what you get for $c$ back into the original expression and see if it works. Also, the choice of $x^T \over |x|^2$ is not unique; any row vector $v$ such that $vx=1$ will work equally well in the above expression.


$$B^{-1}(x-\mu) = xc $$ If the matrix $B$ is known, why not write $$ (B^{-1} - cI)x = B^{-1}\mu $$ and then worry about whether $B^{-1}-cI$ is invertible?


There's no such thing as an inverse of a vector (unless the vector is actually a $1\times 1$ vector, of course).

Otherwise, there would be a solution $C$ for any $B,X,\mu$ (or at least any $X$ "invertible"), but that is obviously not the case (e.g. for any $X$ if we put $B=I$, $\mu$ linearly independent from $X$, there is no $C$).