Skip to content

Commit

Permalink
Update gamma.hpp (#1236)
Browse files Browse the repository at this point in the history
* Update gamma.hpp

Missing name for Lanczos parameter in gamma_imp_final

* Update gamma.hpp

* Change location of void and annotate

---------

Co-authored-by: Matt Borland <[email protected]>
  • Loading branch information
kenarab and mborland authored Jan 21, 2025
1 parent 024a4fe commit 2f3c798
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/boost/math/special_functions/gamma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,13 @@ BOOST_MATH_GPU_ENABLED T sinpx(T z)
// tgamma(z), with Lanczos support:
//
template <class T, class Policy, class Lanczos>
BOOST_MATH_GPU_ENABLED T gamma_imp_final(T z, const Policy& pol, const Lanczos&)
BOOST_MATH_GPU_ENABLED T gamma_imp_final(T z, const Policy& pol, const Lanczos& l)
{
BOOST_MATH_STD_USING

(void)l; // Suppresses unused variable warning when BOOST_MATH_INSTRUMENT is not defined

T result = 1;
T result = 1;

#ifdef BOOST_MATH_INSTRUMENT
static bool b = false;
Expand Down

0 comments on commit 2f3c798

Please sign in to comment.