I'm using linspace to generate an array of 100 elements, the result's shape is (100,) but I want to obtain an array with the following shape (100, 1). How can I do it? I tried reshape but it does not give the required result. Here is an exmaple :
import numpy as np
om1 = np.linspace(-50, 50, 100);
om = np.random.randn(100,1);
print(shape(om1))
print(shape(om))
Output :
>>> (100, )
(100, 1)
shapefunction. Did you meanom1.shape?