Skip to content

Commit

Permalink
fallback to custom implementation on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
j-faria committed Jan 15, 2025
1 parent 6d98497 commit c28618e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kima/GP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,10 @@ _spleaf_ESP_PKernel<nharm>::_spleaf_ESP_PKernel(const VectorXd &t, std::array<do

#ifdef __APPLE__
for (int i = 0; i <= nharm; i++)
a[i] = std::cyl_bessel_i(i, f) * exp(-abs(f));
a[i] = bessel::cyl_i(i, f, true);
#else
for (int i = 0; i <= nharm; i++)
a[i] = bessel::cyl_i(i, f, true);
a[i] = std::cyl_bessel_i(i, f) * exp(-abs(f));
#endif

a[0] /= 2.0;
Expand Down

0 comments on commit c28618e

Please sign in to comment.