I'm inverting a matrix and multiplying it by a vector and transposed vector. Bluntly, you're doing it wrong. Mathematically, there is pretty much never a reason to actually invert a matrix. Where you ...