Skip to content

Commit ceae659

Browse files
author
maechler
committed
allow codes 1:3 in l3.10 example
git-svn-id: https://svn.r-project.org/R/trunk@87999 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent b741067 commit ceae659

File tree

1 file changed

+3
-1
lines changed
  • src/library/stats/tests

1 file changed

+3
-1
lines changed

src/library/stats/tests/nlm.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ chkNlm(l3.10, estimate = c(1,1), # lower tolerances now, notably for fgh:
9898
tols = list(min = c(1e-9, 1e-20, 1e-16),
9999
est = c(1e-4, 1e-10, 1e-14),
100100
grad= c(1e-3, 6e-9, 1e-12)),
101-
codes.wanted = if(Lb64) 1:2 else 1:3)
101+
codes.wanted = 1:3) # was if(Lb64) 1:2 else 1:3
102+
## but Intel (2025.0.4) compilers returned (3 1 1)
103+
102104

103105
## all 3 fail to converge here
104106
str(l3.1c <- nlm3(x0 = c(-100, 100), iterlim = 1000))

0 commit comments

Comments
 (0)