-
#2278
Replies: 1 comment 6 replies
-
If I multiple the arrays as you give them, the element-wise operation just works: >>> x = ak.Array([[1], [2,[3]]])
>>> y = ak.Array( [[4], [5,[6]]])
>>> x * y
<Array [[4], [10, [18]]] type='2 * var * union[int64, var * int64]'> Is this not what you observe? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently trying to write an element-wise product (Hadamard product) function but am facing issues when the input fed is of a weird nested format. It works fine when lets say the input is;
However, when there is nesting within a specific index i'm not sure how to get the expected output (flatenning and casting seem to be throwing errors, though this is probably due to a lack of deeper understanding on my end)
eg:
Any guidance would be really helpful!
Beta Was this translation helpful? Give feedback.
All reactions