<div dir="ltr">Hi All, <br><br>I would like to see the <span style="font-family:monospace,monospace">numpy.ones_like</span> function operate as a ufunc.  This is currently done in <span style="font-family:monospace,monospace">np.core.umath._ones_like</span>.  This was recently raised and discussed in <a href="https://github.com/numpy/numpy/issues/11074">https://github.com/numpy/numpy/issues/11074</a> .  It was suggested that I raise the topic here instead.<br><br>My understanding is that this was considered some time ago, but that the current numpy.ones_like function was implemented instead.  No one on that issue seems to fully remember why.  Perhaps someone here has a longer memory?<br><br>My objective for defaulting to the ufunc implementation is that it makes it compatible with other projects that implement numpy-like interfaces (dask.array, sparse, cupy) so that downstream projects can use a subset of numpy code that is valid across a few projects.  More broadly I would like to see ufuncs and other protocol-enabled functions start to become more common within numpy, ones_like being one specific case.<br><br>Best,<br>-matt</div>