[SciPy-dev] python pow versus np.power
Robert Kern
robert.kern at gmail.com
Thu Apr 2 13:29:16 EDT 2009
On Thu, Apr 2, 2009 at 09:11, <josef.pktd at gmail.com> 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.
--
Robert Kern
"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
mailing list