[SciPy-dev] Where to add special functions ?

Robert Kern robert.kern at gmail.com
Thu Jul 19 15:08:18 EDT 2007


David Cournapeau wrote:
> Hi,
> 
>     I would like to add a special function (implemented in python), but 
> not sure where I should put it for a patch: it looks like scipy.special 
> is implemented in C/Fortran except for orthgonal function.
>     The function I would like to add is the generalized gamma:
> 
> http://planetmath.org/encyclopedia/GammaFunctionMultivariateReal.html
> 
> The function is useful to multi variate analysis (appears for example 
> when one needs to compute the KL divergence of Wishart distributions, 
> which appear quite often in Bayesian statistics).

Put your Python file in Lib/special and import from it in __init__.py. Use your
judgment as to its name, but you might want to make it sufficiently general such
that it will be the obvious place to put more pure Python special functions.

Thanks!

-- 
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