I am looking for a C # linear algebra library.
I did not solve a homogeneous linear system with minimization of least squares.
I am trying to use some libraries, but I just managed to find a trivial solution.
Any recommendations?
Cm:
They are also open source!
As oleksii commentator noted, you can use Accord.NET to achieve this. But you can also use the Solver extension method to do this instead of manually creating the SVD:
// Suppose you have matrices A and b and would // like to find x such that Ax = b (solve for x). // So you would have matrices double[,] A = ... // matrix A double[] b = ... // vector b // Then all that is necessary is to call: double[] x = A.Solve(b, leastSquares: true);
And it's all. It also works when b also a matrix.
b
Disclaimer: I am the author of this library.
Source: https://habr.com/ru/post/1387047/More articles:How to set hard-coded symmetric encryption in WCF using AES256? - encryptionDoes .NET support TLS-PSK? - .netThe most efficient way to create a grid is to view my page - javascriptCreate a div by clicking and dragging - jqueryOpening two SQLConnections with the same ConnectionString - c #Errors when creating Android projects in Eclipse - androidVS 2010: Exceptions when a project XAML file that includes System.Windows.Interactivity is opened - exceptionPerl scheduling priority runnig OS features - linuxEclipse - Unable to set subquery / subversion - eclipseHow to use images with nine patches - androidAll Articles