Skip to content

Commit

Permalink
Remove from coverage testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadler committed Aug 6, 2023
1 parent 42aceb2 commit b692e2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lambertW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit b692e2a

Please sign in to comment.