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: Marco Caliari
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 15:53:30 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

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

@Mike, I found a similar example


A=sparse(5,6);A(3,1)=0.8;A(2,2)=1.4;A(1,6)=-0.5;[q r]=qr(A);r
r =

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

  (1, 1) -> -0.80000
  (2, 2) -> -1.4000
  (6, 6) ->  0.50000


so an extra element in position (6, 6). If you run qr on full(A), you discover
that the element 0.50000 should be in position (3, 6).

    _______________________________________________________

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]