Re: [Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-20 Thread Chris Barker
On Mon, Aug 20, 2018 at 8:57 AM, Neal Becker wrote: > I'm confused, do you have a link or example showing how to use > xtensor-python without pybind11? > I think you may have it backwards: """ The Python bindings for xtensor are based on the pybind11 C++ library, which enables seemless interope

Re: [Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-20 Thread Sylvain Corlay
Thanks guys. If we add pybind11 and xtensor, boost.python is also a good contender there. S. On Mon, Aug 20, 2018, 11:51 Hans Dembinski wrote: > Dear Robert, > > > On 17. Aug 2018, at 23:44, Robert Kern wrote: > > > > Even if you don't use the numpy-mimicking parts of the xtensor API, > xtens

Re: [Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-20 Thread Neal Becker
I'm confused, do you have a link or example showing how to use xtensor-python without pybind11? Thanks, Neal On Mon, Aug 20, 2018 at 5:50 PM Hans Dembinski wrote: > Dear Robert, > > > On 17. Aug 2018, at 23:44, Robert Kern wrote: > > > > Even if you don't use the numpy-mimicking parts of the xt

Re: [Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-20 Thread Hans Dembinski
Dear Robert, > On 17. Aug 2018, at 23:44, Robert Kern wrote: > > Even if you don't use the numpy-mimicking parts of the xtensor API, > xtensor-python is a probably a net improvement over pybind11 for > communicating arrays back and forth across the C++/Python boundary. Even if > the rest of y

Re: [Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-17 Thread Neal Becker
The only way I've seen xtensor used is *with* pybind11 On Fri, Aug 17, 2018 at 5:45 PM Robert Kern wrote: > On Fri, Aug 17, 2018 at 2:00 AM Hans Dembinski > wrote: > >> Hi Sylvain, >> >> On 16. Aug 2018, at 13:29, Sylvain Corlay >> wrote: >> >> Actually, xtensor-python does a lot more in terms

Re: [Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-17 Thread Robert Kern
On Fri, Aug 17, 2018 at 2:00 AM Hans Dembinski wrote: > Hi Sylvain, > > On 16. Aug 2018, at 13:29, Sylvain Corlay > wrote: > > Actually, xtensor-python does a lot more in terms of numpy bindings, as it > uses the C APIs of numpy directly for a number of things. > > Plus, the integration into the

Re: [Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-17 Thread Hans Dembinski
Hi Sylvain, > On 16. Aug 2018, at 13:29, Sylvain Corlay wrote: > > Actually, xtensor-python does a lot more in terms of numpy bindings, as it > uses the C APIs of numpy directly for a number of things. > > Plus, the integration into the xtensor expression system lets you do things > such as v

Re: [Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-16 Thread Sylvain Corlay
Hi Hans, On Thu, Aug 16, 2018 at 10:51 AM, Hans Dembinski wrote: > Hi Sylvain, > > On 15. Aug 2018, at 19:38, Sylvain Corlay > wrote: > > If `pybind11` is included, it could be interesting to also include > `xtensor` and `xtensor-python`. > > - Xtensor is a C++ dynamic N-d array library that

Re: [Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-16 Thread Hans Dembinski
Hi Sylvain, > On 15. Aug 2018, at 19:38, Sylvain Corlay wrote: > > If `pybind11` is included, it could be interesting to also include `xtensor` > and `xtensor-python`. > > - Xtensor is a C++ dynamic N-d array library that offers numpy-like features > including broadcasting and universal func

Re: [Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-16 Thread Hans Dembinski
Dear Paul, > On 15. Aug 2018, at 12:50, Pauli Virtanen wrote: > > Please go ahead --- the relevant source file is here: > > https://github.com/numpy/numpy/blob/master/doc/source/user/c-info.python-as-glue.rst > > It also does no mention CFFI either, mostly because the original text > predates

Re: [Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-15 Thread Sylvain Corlay
Hi Hans, Pauli, If `pybind11` is included, it could be interesting to also include `xtensor` and `xtensor-python`. - Xtensor is a C++ dynamic N-d array library that offers numpy-like features including broadcasting and universal functions. It is also lazy evaluated and continuously benchmarked a

Re: [Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-15 Thread Pauli Virtanen
Hi, ke, 2018-08-15 kello 11:40 +0200, Hans Dembinski kirjoitti: [clip: pybind11] > So far all these reasons and more, it should be mentioned and even > highlighted here: > > https://docs.scipy.org/doc/numpy/user/c-info.python-as-glue.html < > https://docs.scipy.org/doc/numpy/user/c-info.python-as

[Numpy-discussion] Add pybind11 to docs about writing binding code

2018-08-15 Thread Hans Dembinski
Dear all, I just joined the numpy mailing list to suggest an enhancement of the docs about writing binding code https://docs.scipy.org/doc/numpy/user/c-info.python-as-glue.html I hope this is the right place to discuss this. S