当前位置:网站首页>Use and analysis of dot function in numpy

Use and analysis of dot function in numpy

2022-07-07 07:48:00 Chief prisoner

stay Python Use in numpy Encountered a function dot function , Point multiplication function , Specific internal principles and usage , Record here :

One dimensional matrix

The first is the operation of one-dimensional matrix :

Its operation is directly multiplied :

One dimensional matrix is actually the multiplication of each corresponding point , Then I add

Two dimensional matrix

The dot product of the corresponding two-dimensional matrix is , If a.dot(b),a The line and the way of life b The number of columns is equal , And every element of the line , Multiply by each element of the column .

The internal principle is :[0 2 3 1] Respectively and [12][12][15][12] Multiply

For the above numpy Inside the warehouse dot Basic principle of function ;

原网站

版权声明
本文为[Chief prisoner]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070415552883.html