[Numpy-discussion] ndarray is not a sequence

2014-02-27 Thread Anthony Scopatz
Hello All, The semantics of this seem quite insane to me: In [1]: import numpy as np In [2]: import collections In [4]: isinstance(np.arange(5), collections.Sequence) Out[4]: False In [6]: np.version.full_version Out[6]: '1.9.0.dev-eb40f65' Is there any possibility that ndarray could inherit

Re: [Numpy-discussion] invert bincounts?

2014-02-27 Thread Jaime Fernández del Río
On Thu, Feb 27, 2014 at 6:11 PM, Alan G Isaac wrote: > I have a bincount array `cts`. > I'd like to produce any one array `a` such that `cts==np.bincounts(a)`. > Easy to do in a loop, but does NumPy offer a better (i.e., faster) way? > >>> cts = np.bincount([1,1,2,3,4,4,6]) >>> np.repeat(np.aran

[Numpy-discussion] invert bincounts?

2014-02-27 Thread Alan G Isaac
I have a bincount array `cts`. I'd like to produce any one array `a` such that `cts==np.bincounts(a)`. Easy to do in a loop, but does NumPy offer a better (i.e., faster) way? Thanks, Alan Isaac ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

[Numpy-discussion] last call for fixes for numpy 1.8.1rc1

2014-02-27 Thread Julian Taylor
hi, We want to start preparing the release candidate for the bugfix release 1.8.1rc1 this weekend, I'll start preparing the changelog tomorrow. So if you want a certain issue fixed please scream now or better create a pull request/patch on the maintenance/1.8.x branch. Please only consider bugfix

Re: [Numpy-discussion] Silencing NumPy output

2014-02-27 Thread Arnaud Bergeron
Since there was opposition to just removing the output all the time, I've added a new parameter, 'verbosity' that can be set to 0 to hide the output. This unfortunately requires a bit of code churn and changes the interface to get_info() (but in a backwards-compatible way). I came up with anothe

Re: [Numpy-discussion] ANN: XDress v0.4

2014-02-27 Thread Toby St Clere Smithe
Eelco Hoogendoorn writes: > That is good to know. The boost documentation makes it appear as if bjam is > the only way to build boost.python, but good to see examples to the > contrary! Quite. I really wish they would officially adopt something more sensible, but in the meantime, using alternativ

Re: [Numpy-discussion] ANN: XDress v0.4

2014-02-27 Thread Eelco Hoogendoorn
That is good to know. The boost documentation makes it appear as if bjam is the only way to build boost.python, but good to see examples to the contrary! On Thu, Feb 27, 2014 at 2:19 PM, Toby St Clere Smithe < pyvienn...@tsmithe.net> wrote: > Eelco Hoogendoorn writes: > > I have a file numpy_bo

Re: [Numpy-discussion] ANN: XDress v0.4

2014-02-27 Thread Toby St Clere Smithe
Eelco Hoogendoorn writes: > I have a file numpy_boost_python.hpp in one of my projects by Michael > Droettboom (can seem to find an online source anymore!), which adds > mappings between numpy.ndarray and boost.ndarray, which is very neat > and seemless. But like boost.python, it tightly couples w

Re: [Numpy-discussion] ANN: XDress v0.4

2014-02-27 Thread Eelco Hoogendoorn
I have a file numpy_boost_python.hpp in one of my projects by Michael Droettboom (can seem to find an online source anymore!), which adds mappings between numpy.ndarray and boost.ndarray, which is very neat and seemless. But like boost.python, it tightly couples with the clusterfuck that is bjam. H

Re: [Numpy-discussion] ANN: XDress v0.4

2014-02-27 Thread Anthony Scopatz
On Thu, Feb 27, 2014 at 1:51 AM, Eelco Hoogendoorn < hoogendoorn.ee...@gmail.com> wrote: > Thanks for the heads up, I wasn't aware of this project. While > boost.python is a very nice package, its distributability is nothing short > of nonexistent, so its great to have a pure python binding genera

Re: [Numpy-discussion] problems building numpy with ACML blas/lapack

2014-02-27 Thread Thomas Unterthiner
Hi! (I was contacted about this off-list, but thought it might be worth it to document this on-list) I don't remember ever running into problems while using ACML in my numpy installs. However I never ran the whole test-suite, and I never used np.einsum (or complex numbers) in my own code. Al

Re: [Numpy-discussion] ANN: XDress v0.4

2014-02-27 Thread Toby St Clere Smithe
Eelco Hoogendoorn writes: > I have; but if I recall correctly, it does not solve the problem of > distributing code that uses it, or does it? Indeed not. But the Boost licence is very liberal, so I just link it statically; for source distributions, I just ship a minimal copy of the Boost sources

Re: [Numpy-discussion] ANN: XDress v0.4

2014-02-27 Thread Eelco Hoogendoorn
I have; but if I recall correctly, it does not solve the problem of distributing code that uses it, or does it? On Thu, Feb 27, 2014 at 10:51 AM, Toby St Clere Smithe < pyvienn...@tsmithe.net> wrote: > Hi, > > Eelco Hoogendoorn writes: > > Thanks for the heads up, I wasn't aware of this project

Re: [Numpy-discussion] ANN: XDress v0.4

2014-02-27 Thread Toby St Clere Smithe
Hi, Eelco Hoogendoorn writes: > Thanks for the heads up, I wasn't aware of this project. While boost.python > is a very nice package, its distributability is nothing short of > nonexistent, so its great to have a pure python binding generator. > > One thing which I have often found frustrating is