NLAlib.newtonSchulzSteps
Library · def
The step count of the perturbed Newton–Schulz iteration from \mathbf{x}_0 to tolerance \varepsilon: N(\mathbf{x}_0, \varepsilon) = \frac52 + 2\log_2\frac{1}{\min(\lvert \mathbf{x}_0 \rvert, 1/2)} + \log_2\log_2\frac{1}{\varepsilon} \,, a real number; the iteration count is any natural number at least this value. Junk values: at \mathbf{x}_0 = 0 the middle term is 0 (Mathlib's 0^{-1} = 0), and the last term is 0 unless \varepsilon < 1/2. [Shah2024, Lemma 2.5], the quantity N_{\mathrm{SCALAR}} there.
NLAlib.newtonSchulzSteps (x₀ ε : ℝ) : ℝImport NLAlib.Polynomial.Approximation.NewtonSchulz.