octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53499] Factorization of symmetric positive de


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #53499] Factorization of symmetric positive definite sparse matrix fails whereas Cholesky factorization works
Date: Fri, 30 Mar 2018 06:27:31 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Follow-up Comment #6, bug #53499 (project octave):

Your matrix does not appear to be exactly symmetric, while it is at machine
precision


octave:13> issymmetric (A)
ans = 0
octave:14> issymmetric (A, eps)
ans = 1


Thus, the code in SparseMatrix::fsolve chooses a general solver (umfpack). I
already notice that in #53140. It is a little bit off-topic, but I would agree
to mark a matrix Hermitian if it is Hermitian at machine precision. Since a
general solver is used, refinement iterations are performed (1 in current
stable) and it takes a bit (970 seconds vs. 350 of chol). The errors for me
are comparable (1e-15 vs. 4.5e-15). Since the patch coming from #53140 is not
in 4.2.2, it is possible that the original submitter sees something different
(in 4.2.1 I see "error: SparseMatrix::solve numeric factorization failed. But
this could be related with #53390, and I cannot reproduce with current
stable). To summarize:

1) backslash is slower because the matrix is not detected as exactly
symmetric
2) both backslash and chol work in current stable and give comparable errors
of about 10*eps

I would close the report as Works for me, unless I missed something in my
analysis. 

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53499>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]