行列向量转换
2019-07-03 本文已影响0人
cityhash123
![](https://img.haomeiwen.com/i4476075/77dea7fe7e28beb4.png)
![](https://img.haomeiwen.com/i4476075/076fca4fa372591e.png)
![](https://img.haomeiwen.com/i4476075/d757bfb74b5209b1.png)
![](https://img.haomeiwen.com/i4476075/23962b7cde2530df.png)
![](https://img.haomeiwen.com/i4476075/a2ca64700f8607f7.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.