I need to permutate between two arrays.
I don't need all possible combinations, but taking the first element from either of those two vectors and keeping it at the first position. And the same for the other elements as well. I guess the wanted outcome shows it best.
import numpy as np
x = np.array((x1, x2, x3))
y = np.array((y1, y2, y3))
I expect a list with all possibilities which might look like the following:
z = array([[x1, x2, x3], [y1, x2, x3], [x1, y2, x3], [x1, x2, y3], [y1, y2, x3], [x1, y2, y3], [y1, x2, y3], [y1, y2, y3]])
Thanks.