Rigorous inverse of a matrix