float svd_invdet(float x, float tol) { return (Math.Abs(x) < tol || Math.Abs(1.0f / x) < tol) ? 0.0f : (1.0f / x); }