Open Koyamin opened 2 years ago
I am a new learner of NumSharp and now I want to calculate the matmul product of two NDArrays by using np.matmul function:
np.matmul
using NumSharp; var a = np.arange(2 * 2 * 3).reshape((2, 2, 3)); var b = np.array(new double[] { 1, 2, 3 }); var res = np.matmul(a, b);
The value of res is as follow:
res
[[6], [24]]
However I have tried the same code in Python:
import numpy as np a = np.arange(2*2*3).reshape((2,2,3)) b = np.array([1,2,3]) res = np.matmul(a, b)
Now the value of res is
[[ 8 26] [44 62]]
I have no idea about it. I want to get the result in Python, what should I do?
這個專案好像已經沒有在維護了,我有發現一個更完善的專案 https://github.com/Quansight-Labs/numpy.net
I am a new learner of NumSharp and now I want to calculate the matmul product of two NDArrays by using
np.matmul
function:The value of
res
is as follow:However I have tried the same code in Python:
Now the value of
res
isI have no idea about it. I want to get the result in Python, what should I do?