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

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

[Octave-bug-tracker] [bug #39879] expm returns inaccurate results


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #39879] expm returns inaccurate results
Date: Thu, 29 Aug 2013 12:08:19 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0

Update of bug #39879 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

The problem is in the balancing of the matrix. 
For instance, the first row of the "balanced" matrix has 1-norm 5e-2 and the
first column 9e14 (for the original matrix they are 3.5e-1 and 1e-1).
I think balance uses xGEBAL and that the problem is there (I'm using LAPACK
3.4.1 ang getting similar results with Matlab, where it is written "Balancing
can destroy the properties of certain matrices; use it with some care. If a
matrix contains small elements that are due to roundoff error [our case],
balancing might scale them up to make them as significant as the other
elements of the original matrix.").
I see here http://www.netlib.org/lapack/Errata/index2.html that xGEBAL still
has some problems in LAPACK 3.4.2.
If you remove the balancing stage, expm is fine. Possible solutions:

1) remove balancing from expm (anyone has a counterexample?)
2) try to fix balance: if, after balancing, the matrix is more unbalanced than
the original (for whatever reason), give back the original matrix and a
warning.

Marco

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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