I am a new learner of NumSharp and now I want to calculate the matmul product of two NDArrays by using np.matmul function:
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:
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
I have no idea about it. I want to get the result in Python, what should I do?
I am a new learner of NumSharp and now I want to calculate the matmul product of two NDArrays by using
np.matmulfunction:The value of
resis as follow:However I have tried the same code in Python:
Now the value of
resisI have no idea about it. I want to get the result in Python, what should I do?