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 05:59:00 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

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

@Rik: your patch fixes the problem with inv, but I think that the source of
the problem is the LU factorization of a sparse null matrix. The result should
be


>> [L, U, P, Q] = umfpack (sparse (2, 2, 0))

L =

   (1,1)        1
   (2,2)        1


U =

   All zero sparse: 2×2


P =

   (1,1)        1
   (2,2)        1


Q =

   (2,1)        1
   (1,2)        1


Here umfpack () is the mex interface of UMFPACK, run in matlab. So, it seems
that UMFPACK is able to compute the factorization of a sparse null matrix, but
not in octave. I fear that your patch may hide the true source of troubles.

    _______________________________________________________

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]