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

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

[Octave-bug-tracker] [bug #56232] Octave crash when inverting an empty s


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #56232] Octave crash when inverting an empty sparse matrix.
Date: Tue, 7 May 2019 15:12:34 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Follow-up Comment #26, bug #56232 (project octave):

@Rik: the change to Ai should be applied, in case, also around line 686 of
sparse-lu. But then octave segfaults. Could it be that Ax has to be different
from nullptr, too? I found in umfpack documentation


However, nz can be zero, since all singular matrices are
handled correctly. If you attempt to malloc an array of size nz = 0, however,
malloc will return
a null pointer which UMFPACK will report as a missing argument. If you malloc
an array of size
nz to pass to UMFPACK, make sure that you handle the nz = 0 case correctly
(use a size equal to
the maximum of nz and 1, or use a size of nz+1).


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56232>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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