From 7ec0d3629ff3ed8f206dfc24b484bb0a5c363891 Mon Sep 17 00:00:00 2001 From: Simone Carlo Surace Date: Sun, 10 Mar 2024 22:24:27 +0100 Subject: [PATCH] Remove type piracy --- src/expectations.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/expectations.jl b/src/expectations.jl index 85db8c3..3354548 100644 --- a/src/expectations.jl +++ b/src/expectations.jl @@ -1,8 +1,10 @@ -using FastGaussQuadrature: gausshermite +using FastGaussQuadrature: FastGaussQuadrature using SpecialFunctions: loggamma using ChainRulesCore: ChainRulesCore using IrrationalConstants: sqrt2, invsqrtπ +gausshermite(n::Integer) = FastGaussQuadrature.gausshermite(n) + struct DefaultExpectationMethod end struct AnalyticExpectation end