scijs / ndarray-linear-solve

solve a linear system with LU decomposition
Other
19 stars 3 forks source link

Long term: Integrate with other solvers #2

Open mikolalysenko opened 10 years ago

mikolalysenko commented 10 years ago

It would be great to eventually have this module work about as well as MATLAB's backslash operator.

In MATLAB though, the system selects the best linear solver from a large base of different possibilities depending on the structure of the input. As I understand it, the following methods are generally used:

Each of these algorithms should be implemented as a separate module, and the code here should select the best option given the input data.

mikolalysenko commented 10 years ago

For reference, here is how MATLAB does it:

http://www.mathworks.com/help/matlab/ref/mldivide.html

If you click on "More about > Algorithms" you can see the flow chart that MATLAB uses to select the best solver for a given problem.