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

element-wise operation in arrays #5

Closed
YS-314 opened this issue Jan 18, 2023 · 1 comment
Closed

element-wise operation in arrays #5

YS-314 opened this issue Jan 18, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@YS-314
Copy link
Owner

YS-314 commented Jan 18, 2023

return [f(x) x in itertools.product(*array)]

How to use itertools to iterate through every element in array?

@YS-314 YS-314 added the bug Something isn't working label Jan 18, 2023
@YS-314 YS-314 self-assigned this Jan 18, 2023
@YS-314
Copy link
Owner Author

YS-314 commented Jan 23, 2023

Use np.ndindex

@YS-314 YS-314 closed this as completed Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant