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

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

[Octave-bug-tracker] [bug #51198] Computing the inverse of a pathologica


From: Sébastien Villemot
Subject: [Octave-bug-tracker] [bug #51198] Computing the inverse of a pathological matrix crashes Octave
Date: Wed, 7 Jun 2017 11:35:38 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #4, bug #51198 (project octave):

Actually the crash happens when computing the inverse of any complex matrix
containing a NaN. A minimal testcase is:


octave:1> inv([1+i 2; nan 3])
panic: Segmentation fault -- stopping myself...


The problem lies in ComplexMatrix::finverse (MatrixType &, octave_idx_type&,
double&, bool, bool) where, on the second invocation of zgetri, the pivot
vector pipvt is not initialized.

I attach a patch that seems to fix the issue.

(file #40875)
    _______________________________________________________

Additional Item Attachment:

File name: bug51198.diff                  Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51198>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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