how to create an array to numpy array?
def test(X, N): [n,T] = X.shape print \"n : \", n print \"T : \", T if __name__==\"__main__\": X =
Alternatively, you can use np.shape(...)
np.shape(...)
For instance:
import numpy as np
a=[1,2,3]
and np.shape(a) will give an output of (3,)
np.shape(a)
(3,)