I have an array:
x = np.array([[1, 2, 3], [4, 5, 6]])
and I want to create another array of shape=(1, 1) and dtype=np.ob
shape=(1, 1)
dtype=np.ob
Found a solution myself:
a=np.zeros(shape=(2, 2), dtype=np.object) a[:] = [[x, x], [x, x]]