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

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

[Octave-bug-tracker] [bug #60738] logm returning incorrect result with s


From: anonymous
Subject: [Octave-bug-tracker] [bug #60738] logm returning incorrect result with some real non-symmetric matrices
Date: Mon, 7 Jun 2021 21:27:41 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Follow-up Comment #2, bug #60738 (project octave):

The modification you made can still have the same issue but can be fixed by
changing the line


real_neg_eigv = (real (eigv) < 0) & (imag (eigv) == 0);


to allow a small tolerance

abs_imag_eigv = abs (imag (eigv));
real_neg_eigv = (real (eigv) < 0) & (abs_imag_eigv <= 10 * eps (max
(abs_imag_eigv))));


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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