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: anonyme
Subject: [Octave-bug-tracker] [bug #56232] Octave crash when inverting an empty sparse matrix.
Date: Mon, 6 May 2019 06:13:55 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Firefox/60.0

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

David Bateman here (can't be bothered trying to recover my password) 

Several things I note here:

The function "tinverse" was written to handle triangular or permuted
triangular matrices. Though


C = sparse (ones (2)); C = C - C; matrix_type(C)
>> Full
C = sparse (2,2,0); Matrix_type(C)
>> Full


So something is screwing up in the detection of the matrix type of C-C and its
being detcted in the subtraction operation as triangular

I see to way of fixing this. Fix the matrix type detection code to detect "C -
C" as Full. In fact an empty sparse matrix could be considered as triangular,
so this seems wrong to me. Otherwise the function tinverse should be fixed to
allow for empty matrices. In that case dinverse might alos need to be adapted
for zeros en the diagonal

D.


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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