Python Scipy.sparse RuntimeError: Factor is exactly singular -


i trying find lu factorization sparse matrix(size 159990 159990). following 3 lines in python have used lu decomposition

from scipy.sparse import csc_matrix, linalg sla  interior_stiff=csc_matrix(159990 159990)  lu= sla.splu(interior_stiff,options=dict(symmetricmode=true)) 

properties of matrix include,

  1. symmetric

  2. the diagonal elements largest among corresponding matrix column.

  3. non singular matrix

while running code getting following error in spyder gui,

  file "<ipython-input-1-7243a2294501>", line 1, in <module>      runfile('c:/temp/new_lu/run_1_using_lu.py', wdir='c:/temp/new_lu')    file "c:\programdata\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 866, in runfile      execfile(filename, namespace)    file "c:\programdata\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile      exec(compile(f.read(), filename, 'exec'), namespace)    file "c:/temp/new_lu/run_1_using_lu.py", line 574, in <module>      lu= sla.splu(interior_stiff,options=dict(symmetricmode=true))    file "c:\programdata\anaconda3\lib\site-packages\scipy\sparse\linalg\dsolve\linsolve.py", line 261, in splu      ilu=false, options=_options)  runtimeerror: factor singular 

can suggest possible solution this?

any appreciated.

thank you,

paul thomas


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -