Anirudh Subramanian
Anirudh Subramanian
please see the xref'd pr for a reference implementation.
@rossbar added this feature here : https://github.com/numpy/numpy/pull/16128
ohh right! thanks for the clarification.
just revisiting this, can we do something like : https://github.com/sphinx-doc/sphinx/pull/4807 where we just use path if os.path.relpath doesn't work, or does it have certain implications with absolute paths being used...
Thanks @clbarnes ! That was very quick and helpful.
@passedball Please go through the troubleshooting docs to see if it helps to resolve your issue : https://numpy.org/devdocs/user/troubleshooting-importerror.html
hi @seberg, i started looking more into this. is this still an issue. looks like fmod sets nan and probably causes invalid warning to be set. Tried to dig more...
thanks @seberg! Currently for np.divmod , it behaves differently for scalars and arrays. for scalar it returns (0, 0) and gives a divide by 0 warning. For arrays, it gives...
I guess I was not completely accurate before. Float division for example np.divmod(1.0, 0.0) do ~~print (inf, nan)~~ print(nan, nan). But it has a different behavior for int or long...
for c 1/0 is undefined behavior, on my compiler it gives floating point error core dumped. 1.0/0.0 returns inf, conforming to IEEE754 standard.