工作生活

行列向量转换

2019-07-03  本文已影响0人  cityhash123
image.png image.png image.png image.png

doc: https://docs.scipy.org/doc/numpy/reference/generated/numpy.reshape.html

newshape : int or tuple of ints

The new shape should be compatible with the original shape. If an integer, then the result will be a 1-D array of that length. One shape dimension can be -1. In this case, the value is inferred from the length of the array and remaining dimensions.

上一篇 下一篇

猜你喜欢

热点阅读