Re: [Numpy-discussion] Low-level API for Random

2019-09-25 Thread Kevin Sheppard
> > I'd like to clarify what exactly we mean by exposing a C API. Do we have > in mind that our random number generators can be used from standalone C > code, or via Cython `cimport` like with the current numpy.pxd? > > It sounds like we want to expose the highest level generators; do we also > wa

Re: [Numpy-discussion] Low-level API for Random

2019-09-25 Thread Robert Kern
On Wed, Sep 25, 2019, 12:56 PM Stefan van der Walt wrote: > On Fri, Sep 20, 2019, at 21:30, Robert Kern wrote: > > Given the prevalence of Cython, it's actually really easy to use the > Python API pretty easily in "C", so it's actually a huge waste if the C API > matches the Python API too closel

Re: [Numpy-discussion] Low-level API for Random

2019-09-25 Thread Stefan van der Walt
On Fri, Sep 20, 2019, at 21:30, Robert Kern wrote: > Given the prevalence of Cython, it's actually really easy to use the Python > API pretty easily in "C", so it's actually a huge waste if the C API matches > the Python API too closely. The power and utility of the C API will be in how > it *di