阅读背景:

将numpy ndarray与给定轴上的1d数组相乘

来源:互联网 

It seems I am getting lost in something potentially silly. I have an n-dimensional numpy array, and I want to multiply it with a vector (1d array) along some dimension (which can change!). As an example, say I want to multiply a 2d array by a 1d array along axis 0 of the first array, I can do something like this:It seems I am getting lost in something potenti




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: