Closed epsi1on closed 5 years ago
Hey there!
Please check if your input matrix has NaNs. I just tested, and Cholesky (and probably the other factorizations too) does not throw an exception in this case.
If your input matrix has no NaNs, please upload the matrix and I will have a look (use the MatrixMarketWriter, availalable in the latest version of CSparse).
So, in general: should the factorization methods check for NaNs, or should that be left to the user? What do you think?
So, in general: should the factorization methods check for NaNs, or should that be left to the user? What do you think?
maybe better to left to user.
this is the matrix. right hand side have no NaN. this is matrix in matrix market format in zip file: http://s000.tinyupload.com/index.php?file_id=03650530592839178017
Ok, a lot of NaNs in there. So i guess something went wrong when generating the matrix!
ok, got the problem
Hi, Thanks for great code. After that i've had problem with a particular matrix and cholesky solver. For that matrix cholesky solver gave me an array of
double.NaN
. i am not sure if my matrix was positive definite, but i was expecting that if it is not SPD, then i get anmatrix should be positive definite
error. is it true?Thanks