Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the cholesky_AAt in Non-Rigid ICP can't work #67

Open
AzureSilent opened this issue Mar 8, 2020 · 5 comments
Open

the cholesky_AAt in Non-Rigid ICP can't work #67

AzureSilent opened this issue Mar 8, 2020 · 5 comments

Comments

@AzureSilent
Copy link

Hello, When there are many vertices whose matching reliability weight is set to 0, the Hessian ATA is not full rank.
So only the slow solve method scipy_spsolve can work. The sksparse.cholmod.cholesky_AAt just throw an ERROR:
sksparse.cholmod.CholmodNotPositiveDefiniteError: c:\cholmod-scikit-sparse-window\suitesparse-metis-for-windows-1.3.1\suitesparse\cholmod\supernodal\t_cholmod_super_numeric.c:911: matrix not positive definite (code 1)

how do you handle with this? or I got the wrong version of scikit-sparse?

@jiaxiangshang
Copy link

I am also meeting this problem, have u solved?

@patricksnape
Copy link
Contributor

The easiest thing to do would be to add some regularization to allow the matrix to be invertible. So just add a small number to the diagonal.

@jiaxiangshang
Copy link

Really thanks for your help

@mihaoning
Copy link

hello,may i ask how to add numbers to the diagonal of a sparse matrix?and how to avoid ill-conditioned matrix?thanks a lot!

@patricksnape
Copy link
Contributor

Something like sparse_matrix.diagonal() += 1e-6?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants