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

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

[Octave-bug-tracker] [bug #51950] sparse qr may return a malformed spars


From: Rik
Subject: [Octave-bug-tracker] [bug #51950] sparse qr may return a malformed sparse matrix R with out of bounds entries
Date: Wed, 6 Sep 2017 19:50:57 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #10, bug #51950 (project octave):

Unfortunately, it doesn't seem to be the sorting.  I commented out the sort
code and then re-ran the example


r =

Compressed Column Sparse (rows = 5, cols = 6, nnz = 6 [20%])

  (1, 1) -> -0.80000
  (2, 2) -> -1.4000
  (3, 3) -> -0
  (4, 4) -> -0
  (5, 5) -> -0
  (6, 6) ->  0.50000


So the extra zeros are not dropped, but the problem remains at location
(6,6).

Maybe we aren't calling QR correctly, or we've discovered some weird
longstanding bug in the library.  Someone who understands the CSPARSE library
needs to help out here.

The call is at line 208 of sparse_qr.cc


      BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE;
      S = CXSPARSE_DNAME (_sqr) (order, &A, 1);
      N = CXSPARSE_DNAME (_qr) (&A, S);
      END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE;



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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