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, 14 May 2019 11:09:58 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

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

I started the implementation (attached). It seems to work, but I cannot
trigger the case mattype.ishermitian() in SparseMatrix::inverse. For instance,
the following


> A = sparse ([1, 0, 0;0 ,0, 0; 0, 0, 1];
> ishermitian (A)
ans = 1


falls in ! mattype.ishermitian ().

I copied the result for the diag case and fixed a misalignment between the
double and the complex version. Should I continue with inv (zeros (2))
returning an error? In Matlab and in Octave now the result is Inf (2).

(file #46906)
    _______________________________________________________

Additional Item Attachment:

File name: sparse-singular.cset           Size:7 KB
    <https://savannah.gnu.org/file/sparse-singular.cset?file_id=46906>



    _______________________________________________________

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]