Skip to content

Commit 712c208

Browse files
packquicklypatrick-kidger
authored andcommitted
Update comment on adaptive step-sizing
I noticed the description of the comment on adaptive step-sizing defined δ_{n, n} as the inverse of what it looks to be in code. If I'm wrong, just close this issue
1 parent 2cc447f commit 712c208

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

diffrax/step_size_controller/adaptive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,8 @@ def adapt_step_size(
423423
# h_n is the nth step size
424424
# ε_n = atol + norm(y) * rtol with y on the nth step
425425
# r_n = norm(y_error) with y_error on the nth step
426-
# δ_{n,m} = norm(y_error / (atol + norm(y) * rtol)) with y_error on the nth
427-
# step and y on the mth step
426+
# δ_{n,m} = norm(y_error / (atol + norm(y) * rtol))^(-1) with y_error on the nth
427+
# step and y on the mth step
428428
# β_1 = pcoeff + icoeff + dcoeff
429429
# β_2 = -(pcoeff + 2 * dcoeff)
430430
# β_3 = dcoeff

0 commit comments

Comments
 (0)