Skip to content

Commit 4f6831e

Browse files
authored
use ive for numerical stability (#7228)
1 parent 120fc4e commit 4f6831e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/gp/cov.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ def power_spectral_density_approx(self, J: TensorLike) -> TensorVariable:
810810
a = 1 / pt.square(self.ls)
811811
c = pt.where(J > 0, 2, 1)
812812

813-
q2 = c * pt.iv(J, a) / pt.exp(a)
813+
q2 = c * pt.ive(J, a)
814814

815815
return q2
816816

0 commit comments

Comments
 (0)