[SciPy-dev] distutils, mtrand, Monte Carlo
Robert Kern
robert.kern at gmail.com
Wed Apr 19 12:51:06 EDT 2006
Ed Schofield wrote:
> Robert Kern wrote:
>
>>The easiest option for you now is to simply copy randomkit.[ch] to montecarlo.
>>It won't be changing any time soon. That should tide you over until I manage to
>>export a function pointer table from mtrand.
>
> I don't follow. The hardest part is with the linking. How would a
> function pointer table help?
mtrand would already be imported and loaded through the Python mechanism. It
would expose the table as a CObject. This is exactly how other extensions use
numpy (and Numeric and numarray). This has been a solved problem for the past
ten years or so. We know it works.
--
Robert Kern
robert.kern at gmail.com
"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