1

I'm looking at the documentation for DenseMatrix in MathNet Numerics which can be found here. I found two method definitions Matrix<T> Divide(double scalar) and Matrix<T> DivideByThis(double scalar) which both seem to return a Matrix and accept a double scalar.

Is there any difference between the two?

4

1 回答 1

2

假设m是一个类型的矩阵Matrix<double>并且s是一个类型的标量double,那么

  • m.Divide(s)相当于m/s标量是除数的地方
  • m.DivideByThis(s)相当于s/m标量是被除数的地方(逐点)

请注意,这两个操作都是逐点除法,因此DivideByThis进行矩阵求逆或伪求逆,而是将标量除以矩阵的每个值。

不幸的是,用于生成 API 参考的工具存在一些问题,在这种情况下无法呈现 xml 文档。我们希望将来用更有用且更好地集成到文档中的东西来替换它。

于 2014-07-14T20:58:25.713 回答