且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

python中的点积

更新时间:2022-06-24 10:10:18

您还可以使用

You can also use the numpy implementation of dot product which has large array optimizations in native code to make computations slightly faster. Even better unless you are specifically trying to write a dot product routine or avoid dependencies, using a tried tested widely used library is much better than rolling your own.