Something like np.outer #280
-
Hey there, I was wondering if there exists a feature, or a way to implement a simple outer operation like the one offered by numpy: https://numpy.org/doc/stable/reference/generated/numpy.outer.html. It might be straightforward already, but if not I would find it nice to have it as a feature. Like: einouter(a, b, "i, j -> i j"). Sorry again if this is already possible, i just found out this library. |
Beta Was this translation helpful? Give feedback.
Answered by
arogozhnikov
Sep 15, 2023
Replies: 1 comment
-
yes, that's possible: einops.einsum(a, b, 'i, j -> i j') |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
arogozhnikov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes, that's possible: