Skip to content

Commit c15d095

Browse files
authored
Merge branch 'master' into fix-periodic
2 parents 1118c90 + ec19a94 commit c15d095

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "KernelFunctions"
22
uuid = "ec8451be-7e33-11e9-00cf-bbf324bd1392"
3-
version = "0.10.58"
3+
version = "0.10.59"
44

55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
@@ -32,6 +32,7 @@ IrrationalConstants = "0.1, 0.2"
3232
LogExpFunctions = "0.2.1, 0.3"
3333
Requires = "1.0.1"
3434
SpecialFunctions = "0.8, 0.9, 0.10, 1, 2"
35+
Statistics = "1"
3536
StatsBase = "0.32, 0.33, 0.34"
3637
TensorCore = "0.1"
3738
ZygoteRules = "0.2"

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ Documenter = "0.27"
1212
KernelFunctions = "0.10"
1313
Kronecker = "0.4, 0.5"
1414
PDMats = "0.11"
15+
Statistics = "1"
1516
julia = "1.3"

src/basekernels/matern.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ MaternKernel(; nu::Real=1.5, ν::Real=nu, metric=Euclidean()) = MaternKernel(ν,
4141

4242
function _matern::Real, d::Real)
4343
if iszero(d)
44-
return one(d)
44+
c = -ν /- 1)
45+
return one(d) + c * d^2 / 2
4546
else
4647
y = sqrt(2ν) * d
4748
b = log(besselk(ν, y))

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ ReverseDiff = "1.2"
3636
SpecialFunctions = "0.10, 1, 2"
3737
StableRNGs = "1"
3838
StaticArrays = "1"
39+
Statistics = "1"
3940
Zygote = "0.6.38"

0 commit comments

Comments
 (0)