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.
var C = A.QR().Solve(B);
(using QR decomposition)
For square matrices also: var C = A.LU().Solve(B);
(using LU decomposition)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With