<div dir="ltr">PR <a href="https://github.com/numpy/numpy/pull/8528">8528</a> adds logical gufuncs such as " all equal".  The functionality has been mentioned quite a few times on this list. Many implementations are in the PR and they are decent IMHO.  The hard part is the API and current ufunc code.  Initially I thought they would be top level functions, ie np.all_equal, but there appears to be general consensus that they should be ufunc methods, ie np.equal.all.  Its not clear to me at least how that should be done.  Adding all, any, and first methods to all ufuncs seems bad.  Some sort of monkeypatch hack also seems bad.  Rewriting the ufunc code to make the methods specific to each ufunc, likely breaking the abi/api, is a big effort.  Suggestions welcome.  Thank you.<br></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 25, 2018 at 6:56 PM Allan Haldane <<a href="mailto:allanhaldane@gmail.com">allanhaldane@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 09/25/2018 11:51 AM, Charles R Harris wrote:<br>
> Hi All,<br>
> <br>
> As usual, the top of the PR stack is getting all the attention. As a<br>
> start on cleaning up the old PRs, I'd like to suggest that all the<br>
> maintainers look at their (long) pending PRs and decide which they want<br>
> to keep, close those they don't want to pursue, and rebase the others.<br>
> Might also help if they would post here the PRs that they think we<br>
> should finish up.<br>
<br>
PR 6377 [0] fixes up alignment bugs which cause complex64/128 to be<br>
incorrectly aligned, which in turn causes further bugs. Eg,<br>
"np.dtype('c8').alignment" is 8 but should be 4 on most systems.<br>
<br>
The PR is in a finished state, modulo reviews. If anyone has access to<br>
sparc/aarch systems it would be great to test it, though.<br>
<br>
Cheers,<br>
Allan<br>
<br>
<br>
[0] <a href="https://github.com/numpy/numpy/pull/6377" rel="noreferrer" target="_blank">https://github.com/numpy/numpy/pull/6377</a><br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@python.org" target="_blank">NumPy-Discussion@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote></div>