Skip to content

Tag: vectorization

How to vectorize a function with lists as argument?

I need help vectorizing a function in numpy. In Julia, I can do something like that: which returns It takes one sublist at a time from the iterables and expands nothing. In Python, I just can’t get to have a similar behaviour. I tried: but it returns: If I do: I get back: I tried with excluded parameter…