I am trying to look for the code source of scipy.special.rel_entr function in GitHub Repo but could not find rel_entr function definition.
I also tried to look in this code: https://github.com/scipy/scipy/pull/6522/files#diff-0
I am trying to look for the code source of scipy.special.rel_entr function in GitHub Repo but could not find rel_entr function definition.
I also tried to look in this code: https://github.com/scipy/scipy/pull/6522/files#diff-0
Copyright © 2021 Jogjafile Inc.
scipy.special.rel_entris a ufunc. The core calculation that is used by the function is implemented in Cython in the file_convex_analysis.pxd, specifically these lines. All the wrapper code that implements theufuncrel_entris generated automatically when SciPy is built, based on configuration data in the filefunctions.json.