In [1]:
import numpy as np
In [7]:
X = np.zeros((6,6),dtype=int)
In [10]:
X[1,1] = 5
In [11]:
X
Out[11]:
In [12]:
X.resize(36,1)
In [14]:
X.resize(1,36)
In [16]:
X[0]
Out[16]:
In [17]:
Y = X
In [18]:
Y.reshape(6,6)
Out[18]:
In [19]:
X
Out[19]:
In [ ]: