ENH: add integer-parameter signature in numpy.h - #219
Conversation
|
Ay, didn't expect this. @khushi-411 Was there a hard requirement why we need |
|
Hi, @dschmitz89, @fbourgey! The main reason was that the windows tests were failing in CI when I used a test case with an input value of dtype From here: #209 (comment)
|
Thanks for the explanation. To me this looks good then but it would be great if @steppi could take a final look. |
@steppi WDYT? |
|
Why not simply use |
|
@fbourgey, I thought since |
|
@steppi can you chime in here? |
|
I think it's fine to do this on a temporary basis. Longer term, we should move to only using fixed width types, using templates in the kernels for integer args to support "generic integer arguments", and to have |
@steppi Would you have time to open a PR that show cases the template approach for the Jacobi polynomials? If that is the preferred route we should use it now already if it is not too complicated. |
Reference issue
What does this implement/fix?
Following #209, I was trying to use Jacobi and Shifted Jacobi polynomials from XSF. It appears those ufunc signatures will be useful for
scipy/special/_special_ufuncs.cppfor Jacobi and the following polynomials.Additional information
AI Generation Disclosure
Codex reviewed.