From df116899a5b1146f91ee291ab2b47d300596b767 Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Fri, 19 Apr 2024 15:20:01 -0600 Subject: [PATCH] python: update method signature --- python/module.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/module.hpp b/python/module.hpp index a4a3788a8f..d2feb36ec8 100644 --- a/python/module.hpp +++ b/python/module.hpp @@ -27,12 +27,12 @@ using namespace singularity; // Helper function to convert lambda numpy array to double* buffer // With std::optional we would add support for a default value of lambda=None -template +template Real two_params(const T& self, const Real a, const Real b, py::array_t lambda) { return (self.*Func)(a, b, lambda.mutable_data()); } -template +template Real two_params_no_lambda(const T& self, const Real a, const Real b) { return (self.*Func)(a, b, nullptr); }