Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Matern AD failures #528

Merged
merged 3 commits into from
Oct 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/basekernels/matern.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@

function _matern(ν::Real, d::Real)
if iszero(d)
return one(d)
c = -ν / (ν - 1)
return one(d) + c * d^2 / 2

Check warning on line 45 in src/basekernels/matern.jl

View check run for this annotation

Codecov / codecov/patch

src/basekernels/matern.jl#L44-L45

Added lines #L44 - L45 were not covered by tests
simsurace marked this conversation as resolved.
Show resolved Hide resolved
else
y = sqrt(2ν) * d
b = log(besselk(ν, y))
Expand Down
Loading