小编ThW*_*Win的帖子

什么是numpy array [0 ,:] * = 1.23的MathNet等效项

我必须在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)

?

c# python mathnet-numerics math.net

2
推荐指数
1
解决办法
1201
查看次数

标签 统计

c# ×1

math.net ×1

mathnet-numerics ×1

python ×1