lazyarray icon indicating copy to clipboard operation
lazyarray copied to clipboard

Support NumPy ufuncs that require more than one argument

Open apdavison opened this issue 4 years ago • 1 comments

i.e. "power", "fmod", "arctan2, hypot, ldexp, maximum, minimum"

Example of current problem:

In [1]: from lazyarray import larray, power

In [2]: x = larray([1, 4, 9, 16])

In [3]: power(x, 0.5)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-3-b294233f7ade> in <module>
----> 1 power(x, 0.5)

TypeError: larray_compatible_ufunc() takes 1 positional argument but 2 were given

apdavison avatar Nov 09 '21 11:11 apdavison

cf https://github.com/NeuralEnsemble/PyNN/issues/358

apdavison avatar Nov 09 '21 11:11 apdavison