`pow` only works if both arguments have the same type
BenWeber42 opened this issue · 0 comments
BenWeber42 commented
See:
dawn/dawn/src/driver-includes/math.hpp
Lines 99 to 110 in a861f9e
Can lead to errors like:
intro_cxx-naive.cpp:37:89: error: no matching function for call to ‘pow(dawn::float_type, int)’
37 | gridtools::dawn::math::pow((::dawn::float_type) 2.0, (int) 1);
C++'s pow
is defined for this case:
https://en.cppreference.com/w/cpp/numeric/math/pow