Is there any efficient way to convert a 1D array like
[1,2,3]
to a 3D array like
[[(1,1),(1,2),(1,3)],
[(2,1),(2,2),(2,3)],
[(3,1),(3,2),(3,3)]]
in Numpy/Python?
Is there any efficient way to convert a 1D array like
[1,2,3]
to a 3D array like
[[(1,1),(1,2),(1,3)],
[(2,1),(2,2),(2,3)],
[(3,1),(3,2),(3,3)]]
in Numpy/Python?