Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support NumPy ufuncs that require more than one argument #17

Open
apdavison opened this issue Nov 9, 2021 · 1 comment
Open

Support NumPy ufuncs that require more than one argument #17

apdavison opened this issue Nov 9, 2021 · 1 comment

Comments

@apdavison
Copy link
Member

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 added a commit to apdavison/lazyarray that referenced this issue Nov 9, 2021
@apdavison
Copy link
Member Author

cf NeuralEnsemble/PyNN#358

apdavison added a commit to apdavison/lazyarray that referenced this issue Nov 9, 2021
apdavison added a commit to apdavison/lazyarray that referenced this issue Nov 9, 2021
apdavison added a commit that referenced this issue Nov 9, 2021
Partial fix for #17 - handles the case where 2nd argument is a scalar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant