from nd to 1d arrays,c = a.flatten()