I’ve recently begun using MathNet to implement our linear algebra, however I’m having some trouble translation MATLAB functions to MathNet.
In MATLAB I often use the simple solve using the backslash operator:
C = A \ B
What is the equivalent of 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 as precise.
I don’t think MathNet has any “equivalent” of Matlab’s backslash operator. See this site for some info on how Matlab’s backslash works: Matlab manual on mldivide(). I guess you could look at some of the solve methods, like QRSolve, but I don’t think they will be as easy to use…
What do you mean by “precise”? Are you asking if MathNet’s inv() does exact inversion of a matrix, or are you simply asking if you could calculate C as Inv(A)*(B)?
If you are asking the later, yes, for square matrices Matlab’s backslash is roughly the same as Inv(A)*(B).