From b692e2ab8c459d286678e5f9a3f114bf91aba7a6 Mon Sep 17 00:00:00 2001 From: Avraham Adler Date: Sun, 6 Aug 2023 17:16:06 -0400 Subject: [PATCH] Remove from coverage testing. --- src/lambertW.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lambertW.cpp b/src/lambertW.cpp index 14249ab..8e0db72 100644 --- a/src/lambertW.cpp +++ b/src/lambertW.cpp @@ -75,6 +75,9 @@ double FritschIter(double x, double w){ return(w); } +// Do not include Halley in coverage testing since unused +// nocov start + /* Halley Iteration Given x, we want to find W such that Wexp(W) = x, so Wexp(W) - x = 0. We can use Halley iteration to find this root; to do so it needs first and @@ -103,6 +106,7 @@ double HalleyIter(double x, double w_guess){ } while (!CONVERGED && i < MaxEval); return(w); } +// nocov end double lambertW0_CS(double x) { if (x == R_PosInf) {