我必须在c#(MathNet)中移植一些python(numpy)代码。我可以用python编写:
mtx = np.array([[0,1,2],[3,4,5]])
mtx[0,:] *= 1.23 #multiply all elements in row 0 by 1.23
Run Code Online (Sandbox Code Playgroud)
如何在MathNet中做到这一点?是否有比以下更好(更快)的解决方案:
mtx = np.array([[0,1,2],[3,4,5]])
mtx[0,:] *= 1.23 #multiply all elements in row 0 by 1.23
Run Code Online (Sandbox Code Playgroud)
?