Skip to content

Commit

Permalink
templated complex pow function needs cuda decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
pguzowski authored and spj101 committed Nov 7, 2021
1 parent d9413e3 commit 291acb1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,11 @@ namespace %(name)s
return SecDecInternalPow(x, y);
}
#if %(name)s_has_complex_parameters || %(name)s_contour_deformation || %(name)s_enforce_complex_return_type
template <typename Tbase, typename Texponent> complex_t pow(Tbase base, Texponent exponent)
template <typename Tbase, typename Texponent>
#ifdef SECDEC_WITH_CUDA
__host__ __device__
#endif
complex_t pow(Tbase base, Texponent exponent)
{
#ifdef SECDEC_WITH_CUDA
complex_t cbase = base;
Expand Down

0 comments on commit 291acb1

Please sign in to comment.