Skip to content Skip to sidebar Skip to footer

A Cartesian Product Function That Can Yield Chunks Of Result For Large Arrays

@Paul Panzer shared an excellent answer on how to perform the cartesian product of a list of NumPy arrays efficiently. I have modified his cartesian_product_transpose_pp(arrays) fu

Solution 1:

I also had to solve this problem, but this requires numba to be fast. Here's my answer in a similar thread (originaly limited to a regular cartesian product).


Post a Comment for "A Cartesian Product Function That Can Yield Chunks Of Result For Large Arrays"