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

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

[Octave-bug-tracker] [bug #36211] bug: crashes and endless loops


From: anonymous
Subject: [Octave-bug-tracker] [bug #36211] bug: crashes and endless loops
Date: Tue, 17 Apr 2012 09:52:58 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0

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

Hello, thanks for investigating this issue,

I'm using the "i686-pc-mingw32" version of 3.6.1.

yes, I know my statements are somewhat nonsensical :) - I just wanted to
create a tiny example. As far as I can see, the loop (or crash) occurs on
(every?) equation systems where the matrix contains any Inf value. 
I was doing curve fitting with a Gauss-Newton like algorithm (see below) that
did not converge, so that after a few iterations there where Inf values in the
equation system.


F = f(X,a);   % F: function values
              % a: vector of parameters
              % X,Y: Nx1-matrices with measurement data (N is about 20000)
r = F-Y;      % residuals
J = jac(X,a); % jac: function that forms jacobi-matrix

% (here I should check if there are Inf values in J ...)

s = J  r;    % crash...
a -= s;
% (...iterate until algorithm converges...)


It seems that if the Inf value is in the first column, then it crashes (or on
linux: shows the expected error message). If the Inf is in a column >1 then it
is doing it's endless loop.

Regards
Stefan Reiser


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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