The difference between the array and matrix of numpy

Two similar but performs the same operation may give different results
Here Insert Picture DescriptionHere Insert Picture Description
Obviously, array only () to achieve "matrix multiplication" by the DOT, array of "*" operation is implemented two identical latitude "matrix" multiplication bit .

While the matrix is different, can be used as "*" operator implementation "matrix multiplication", as shown below:
Here Insert Picture Description
Note that we use in the data processing is large array.

Guess you like

Origin www.cnblogs.com/ChengzhiYang/p/11359917.html