use np.array instead of np.matrix.