Hi Travis, hi Olivier,
Thanks for your replies last month about the choose() issue.
I did some further investigation into this. I ran out of time in that
project to come up with a patch, but here's what I found, which may be of
interest:
The compile-time constant NPY_MAXARGS is indeed limiting c
Hi Ed,
I'm pretty sure that this is "bug" is due to the compile-time constant
NPY_MAXARGS defined in include/numpy/ndarraytypes.h I suspect that the
versions you are trying it on where it succeeds as a different compile-time
constant of that value.
NumPy uses a multi-iterator object (PyA
If performance is not critical you could just write your own function for a
quick fix, doing something like
numpy.array([choices[j][i] for i, j in enumerate([2, 3, 1, 0])])
This 32-array limitation definitely looks weird to me though, doesn't seem
to make sense.
-=- Olivier
2011/6/16 Ed Schofiel
Hi all,
I have been investigation the limitation of the choose() method (and
function) to 32 elements. This is a regression in recent versions of NumPy.
I have tested choose() in the following NumPy versions:
1.0.4: fine
1.1.1: bug
1.2.1: fine
1.3.0: bug
1.4.x: bug
1.5.x: bug
1.6.x: bug
Numeric 2