Thanks for the responses Paul and Marten,
I have raised an issue for the issue at:
https://github.com/numpy/numpy/issues/10227
Best regards,
Jesper
2017-12-16 22:48 GMT+01:00 Marten van Kerkwijk :
> Definitely a big! The underlying problem is:
> ```
> In [23]: np.abs(np.int16(-32768))
> Out[23
OK, thanks for the link to the issue. I'm not using virtual environments - I
built python3.7 (and 2.7) with the `make altinstall` method. I managed to get
the numpy build working on 3.7 by removing the
`random/mtrand/mtrand.c` file so that it gets (re-)generated during the build
using the late
Hi,
is it possible, to apply a logical operation, such as AND or OR along a particular axis of a numpy array?
Let's say I have an (n,m) array and I want to AND along the first axis, such that I get a (1,m) (or just (m,) dimensional array back. I looked at the documentation for np.logical_an
Use “np.all” or “np.any”.
On 18 Dec 2017, 10:02 PM +1100, hanno_li...@gmx.net, wrote:
> Hi,
>
> is it possible, to apply a logical operation, such as AND or OR along a
> particular axis of a numpy array?
>
> Let's say I have an (n,m) array and I want to AND along the first axis, such
> that I ge
On Mon, 2017-12-18 at 12:02 +0100, hanno_li...@gmx.net wrote:
> Hi,
>
> is it possible, to apply a logical operation, such as AND or OR along
> a particular axis of a numpy array?
>
As mentioned, `np.any` and `np.all` work. However, what is more/also
interesting to you is maybe that:
`np.logic