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

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

[Octave-bug-tracker] [bug #53817] nonlin_residmin() fails at call to svd


From: Georg Wiora
Subject: [Octave-bug-tracker] [bug #53817] nonlin_residmin() fails at call to svd()
Date: Fri, 4 May 2018 03:19:57 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0

Follow-up Comment #5, bug #53817 (project octave):

Thanks for your clarifications! I recommend the following patch to _lm_svd_.m
to keep compatibility with pre 4.4.0 octave versions:


% Check octave version
if all(str2num(cell2mat(strsplit(version(),".")')) >= [4;4;0])
  % 2018-May-04: Adapted to octave 4.4.0: 
  % The meaning of second argument was changed for
  % matlab compatibility
  [prt,s,v]=svd(prt,"econ");
else
  % Octave syntax before 4.4.0
  [prt,s,v]=svd(prt,0);
endif


Patched file is attached.

Can anyone move this bug to the optim package? Does anyone know if the
maintainer is still active?

(file #44080)
    _______________________________________________________

Additional Item Attachment:

File name: __lm_svd__.m                   Size:20 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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