I have two numpy arrays: alpha=[0,1]
and beta=[2,3,4]
.
I want to combine them in order to create a new array of tuple which is the result of all possible combinations of the two previous arrays.
x= [(0,2)(0,3)(0,4)(1,2)(1,3)(1,4)]
is there a function which in numpy package or i need to do it by my self? If i have to do it, which is the optimal way?