Open wo80 opened 4 years ago
Great test! Thank you. Ill include it in the tests suite. I'll check your comment and act accordingly (maybe another pull request). In the mean time, I think we can move forward with the pull reqeust. If you dont have any additional comments please approve 👍 :)
A pull request has been added @epsi1on and @wo80 :) !
btw @wo80 , where can i get the "ReusableLU" class? Im trying to include the test in the test-suite. Thanks!
In #8 you are using operator overloads in the Vector
class, which means a new array allocation for each vector operation. Are you planning to address this in a separate pull request resolving this issue?
yes, thats the idea :) !
I played around with the
ILinearSolver
interface of thesparse-matrices
branch. Here's an implemetation which comes with zero additional memory allocations (using a custom LU implementation):It would be used like this:
As already mentioned in https://github.com/EduardBargues/NonLinearEquationsSolver/issues/2#issuecomment-667889790, there are a couple of places in the NonLinearEquationsSolver code, where further optimization can be done (memory allocations in an iterative process should always be reduced as much as possible).
That's also a point where CSparse.NET has to be improved, if it should be used efficiently with this library (at the moment, matrix factors cannot be reused).