What is the equivalent of MathNet solutions MATLAB C = A \ B

I recently started using MathNet to implement our linear algebra, however I had problems translating MATLAB functions into MathNet.

In MATLAB, I often use a simple solution using the backslash operator:

C = A \ B

What is equivalent to this in MathNet?

I get the same results in a small matrix using C = Inv (A) * B, but I don't know if the result is so accurate.

+5
source share
4 answers

, MathNet "" Matlab. . , Matlab: Matlab mldivide(). , , QRSolve, , ...

""? , MathNet inv() , C Inv (A) * (B)?

, , Matlab , Inv (A) * (B).

+2

var C = A.QR().Solve(B); ( QR-)

: var C = A.LU().Solve(B); ( LU)

+4

, Matlab Math.Net Numerics:

A B

Matlab: A\B Math.Net Numerics: A.QR(). (B)

Both give the same results (in my case). I think this will work with the fact that B is also a matrix.

+1
source

If you use the ILNumerics.Net library , you can tryILMath.linsolve(A, B);

0
source

All Articles