[Numpy-discussion] ANN: xtensor and xtensor-python

2016-11-18 Thread Sylvain Corlay
Hi all, We are pleased to announce the release of the xtensor <https://github.com/QuantStack/xtensor> library and its python bindings xtensor-python <https://github.com/QuantStack/xtensor-python>, by Johan Mabille (@JohanMabille) and Sylvain Corlay (@SylvainCorlay). <https://

Re: [Numpy-discussion] State-of-the-art to use a C/C++ library from Python

2016-08-31 Thread Sylvain Corlay
+1 on pybind11. Sylvain On Wed, Aug 31, 2016 at 1:28 PM, Michael Bieri wrote: > Hi all > > There are several ways on how to use C/C++ code from Python with NumPy, as > given in http://docs.scipy.org/doc/numpy/user/c-info.html . Furthermore, > there's at least pybind11. > > I'm not quite sure wh

Re: [Numpy-discussion] ANN: numtraits v0.2

2015-09-23 Thread Sylvain Corlay
Hi Thomas, This is great news! FYI, the traitlets module has been undergoing significant refactoring lately, improving the API to favor a broader usage in the community. One reason for this is that several projects outside of the Jupyter organization are considering adopting traitlets. You can f

Re: [Numpy-discussion] numpy.mean still broken for largefloat32arrays

2014-07-26 Thread Sylvain Corlay
I completely agree with Eelco. I expect numpy.mean to do something simple and straightforward. If the naive method is not well suited for my data, I can deal with it and have my own ad hoc method. On Sat, Jul 26, 2014 at 3:19 PM, Eelco Hoogendoorn wrote: > Perhaps I in turn am missing something;

Re: [Numpy-discussion] Universal functions and introspection

2014-04-16 Thread Sylvain Corlay
ect' support would be welcome of > course. > > -n > > On Tue, Apr 15, 2014 at 11:30 PM, Sylvain Corlay > wrote: > > Hi, > > Unfortunately, numpy ufuncs are incompatible with the inspect module. > > While ufunc.nin and ufunc.nout provide some information on the

[Numpy-discussion] Generalized universal functions returning higher-dimensional arrays.

2014-04-15 Thread Sylvain Corlay
Hello all, numpy.vectorize is a very convenient way to build universal function from scalar functions, and handle broadcasting... A use case that is not handled is the generalization to functions already returning nd array: For example: If foo(x,y) is a scalar function returning a array of dim k,

[Numpy-discussion] Universal functions and introspection

2014-04-15 Thread Sylvain Corlay
Hi, Unfortunately, numpy ufuncs are incompatible with the inspect module. While ufunc.nin and ufunc.nout provide some information on the signature, I don't see how to retrieve argument names. What is the preferred/best way to get argument names of a numpy ufuncs? Best, Sylvain _

[Numpy-discussion] Consistency of numpy’s behavior with arrays of dimension 0

2013-05-08 Thread Sylvain Corlay
Hello everyone, 0d arrays are very convenient because they allow us to write functions that are valid for both arrays and scalar-like argument, thanks to Boolean indexing. However, most special functions in numpy (and scipy) and most Boolean operators, when called on 0d arrays, return scalars rat

Re: [Numpy-discussion] ANN: Spyder v2.2

2013-05-08 Thread Sylvain Corlay
Congratulations to Carlos Jed and Pierre for this new release. Best, Sylvain On Wednesday, May 8, 2013 11:15:20 AM UTC-4, Pierre Raybaut wrote: > > Hi all, > > On the behalf of Spyder's development team ( > http://code.google.com/p/spyderlib/people/list), I'm pleased to announce > that Spyder