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

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

[Octave-bug-tracker] [bug #58280] cellfun with "ErrorHandler"


From: Muhali
Subject: [Octave-bug-tracker] [bug #58280] cellfun with "ErrorHandler"
Date: Mon, 4 May 2020 12:56:23 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0

Follow-up Comment #3, bug #58280 (project octave):

one additional note: if the function foo is replaced with


function varargout = foo (S, varargin)
   for i = 1 : nargout
      varargout{i} = NaN ;
   endfor
endfunction


one gets fairly erratic behavior:

octave:11> cellfun ("factorial", {-1,2,-3}, "ErrorHandler", @foo)
ans =

   0   2

octave:12> cellfun ("factorial", {1,2,-3}, "ErrorHandler", @foo)
ans =

    1.0000e+00    2.0000e+00   6.9511e-310


Am I missing something?


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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