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

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

[Octave-bug-tracker] [bug #64726] betainc: internal integer input logic


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #64726] betainc: internal integer input logic can be improved
Date: Fri, 29 Sep 2023 19:19:18 -0400 (EDT)

Follow-up Comment #9, bug #64726 (project octave):

also, if it is later decided this should output floats for ints, and we want
to follow the 'if a or b are single, the output should be single' rule used in
the rest of the function, that can be done simply by changing lines 126-127:


I = x;
return

to 

if (isa (a, "single") || isa (b, "single"))
  I = single (x);
else 
  I = double (x);
endif
return


since the int inputs must still be 0 or 1, the early return shortcut still
applies.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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