I have some code for solving a problem for a PDE numerically. It was first written in Spyder where it produced the necessary result, but then other people tried to run a direct copy of it in Spyder on their devices and ‘Singular Matrix’ was raised. When I try to run it in Visual Studio Code I get the expected result and no exception is raised. The only difference i can think of for me is that I don’t use any python specific software like Spyder but it seems irrelevant since the code originated from there.
The only function used that may encounter a singular matrix is linalg.solve
Артём Махмудов is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.