[SciPy-dev] python pow versus np.power
Thu Apr 2 12:29:16 CDT 2009
On Thu, Apr 2, 2009 at 09:11, <firstname.lastname@example.org> wrote:
> In stats distribution, I don't want exceptions to be raised for corner
> cases. In many places python builtin pow is used which cannot handle
> several cases.
> Until now I switched to the use of np.power for each individual case
> when there where problems.
> Is there any strong reason not to change all occurrences of pow to np.power?
> It would provide a more robust implementation, even if there is a
> small performance hit.
In scipy? Probably not. Go for it.
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Scipy-dev