Skip to content
Snippets Groups Projects
Commit 64fba32c authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

[j.10] to compute Bessel fct, prefer GSL over Boost ()

Merging branch 'j.10'  into 'main'.

See merge request !2538
parents 7263b3c3 d2e7bbad
No related branches found
No related tags found
1 merge request!2538to compute Bessel fct, prefer GSL over Boost
Pipeline #141358 failed
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "Sample/Interface/LayerRoughness.h" #include "Sample/Interface/LayerRoughness.h"
#include "Base/Py/PyFmt.h" #include "Base/Py/PyFmt.h"
#include "Base/Util/Assert.h" #include "Base/Util/Assert.h"
#include <boost/math/special_functions/bessel.hpp> #include <gsl/gsl_sf_bessel.h>
#include <numbers> #include <numbers>
using std::numbers::pi; using std::numbers::pi;
...@@ -73,7 +73,7 @@ double LayerRoughness::corrFunction(const R3 k) const ...@@ -73,7 +73,7 @@ double LayerRoughness::corrFunction(const R3 k) const
double clength = m_lateral_corr_length; double clength = m_lateral_corr_length;
double R = sqrt(k.x() * k.x() + k.y() * k.y()); double R = sqrt(k.x() * k.x() + k.y() * k.y());
return m_sigma * m_sigma * std::pow(2., 1 - H) / tgamma(H) * std::pow(R / clength, H) return m_sigma * m_sigma * std::pow(2., 1 - H) / tgamma(H) * std::pow(R / clength, H)
* boost::math::cyl_bessel_k(H, R / clength); * gsl_sf_bessel_Knu(H, R / clength);
} }
std::string LayerRoughness::pythonConstructor() const std::string LayerRoughness::pythonConstructor() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment