Peter Stahlecker
Peter Stahlecker
I managed the _linear_eq_to_matrix_ part. But it seems, that the method must be change at other places. On the other had, it seems to cut the time needed by around...
> It doesn't need a new pr, but you can change the title to reflect what it has become. I will do so, if I get it going. :-)
It seems to work, and **definitely 50% to 80% faster**, but I am running in this problem: linear_eq_to_matrix raises a PolyNonlinearError and a NonlinearError, but neither one seems 'defined': When...
> > I get the message NonlinearError is not defined or similar. > > Did you forget to import `NonlinearError`? > > ```python > import sympy as sm > from...
> > Same with PolyNonlinearError? > > ```python > from sympy.polys.solvers import PolyNonlinearError > ``` > > I wouldn't expect that you get a `PolyNonlinearError` as I guess that `linear_eq_to_matrix`...
> > I seem to get both: > > No, what happens is that `PolyNonlinearError` is catched using try except and a `NonlinearError` is raised, which is what you get....
Finally I got it to work, even with the try.....except! **Thanks al lot - I did learn something today!!** The increase in speed is leally substantial as per my inaccurate...
I used Timo's idea of _linear_eq_to_matrix_ function to speed things up considerably. Raise error if nonlinear.
I just copied Timo's version, hopefully correctly so.
I copied correctly! :-) To be very clear: That this finally worked was **ONLY** Timo's skill!