diff --git a/ql/qlrisks.hpp b/ql/qlrisks.hpp index 1ac909b..b3b3fc4 100644 --- a/ql/qlrisks.hpp +++ b/ql/qlrisks.hpp @@ -237,6 +237,15 @@ namespace boost { return boost::math::lltrunc(xad::value(v)); } + inline long_long_type lltrunc(const xad::AReal& v) { + return boost::math::lltrunc(xad::value(v)); + } + + template + inline long_long_type llround(const xad::AReal& v, const Policy& p) { + return boost::math::llround(xad::value(v), p); + } + template inline int itrunc(const xad::BinaryExpr& v) { return itrunc(xad::value(v), policies::policy<>());