Skip to content

ENH: Implement exponentially scaled modified Bessel function Op #542

Closed
@dehorsley

Description

@dehorsley

Before

pt.iv(J, a) / pt.exp(a)

After

pt.ive(J, a)

Context for the issue:

Periodic HSGPs (now in PyMC 🥳 ) require iv(J, a) / exp(a) as normalizing factor. Using this directly could lead to overflows however (as iv grows like exp(x)). Instead ive(nu,x) = iv(nu,x) / exp(abs(x)) exists, and as a bonus cheaper to compute than the combined!

After #403 we already have an implementation of ive in JAX, and it's in scipy, so should be straightforward!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions