Fix ufunc documention#4400
Conversation
Some bits are also rephrased and nan is replaced by NaN where appropriate.
The documentation needs to be in umathmodule.c as that is where ldexp and frexp and defined. I moved the current documention from add_newdocs.py to ufunc_docstrings.py, manually translated them into C strings, and inserted them into umathmodule.c. Closes numpy#2354.
|
why does add_newdoc not work for ldexp/frexp? |
|
ah right its in the commend, ufunc_docstrings.py is not used yet |
|
no wait why does it work for the other stuff in ufunc then? |
|
The docstrings need to be part of the C code. For most ufuncs the code is generated during build from the specs in |
|
Also, |
Updates the fmod and remainder documentation, and inserted the frexp and ldexp documentation into
umathmodule where it currently needs to go.
Closes #3563 and closes #2354.