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

Using inner product . from the Python side behaves as outer product. #9

Open
rodrigogiraoserrao opened this issue Oct 8, 2021 · 0 comments
Labels
bug Things not working as they should.

Comments

@rodrigogiraoserrao
Copy link
Contributor

>>> from pynapl import APL
>>> apl = APL.APL()
>>> dot = apl.op(".")
>>> dot(operator.add)([1, 2, 3], [1, 2, 3])
[[2, 3, 4], [3, 4, 5], [4, 5, 6]]

This should raise some sort of error. Instead, it returns the result of 1 2 3 ∘.+ 1 2 3.

The issue seems to be in the __op inner function of APL.op, that special cases "." in a weird way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things not working as they should.
Projects
None yet
Development

No branches or pull requests

1 participant