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

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

[Octave-bug-tracker] [bug #63713] Feature request: NaN should be able to


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #63713] Feature request: NaN should be able to take the same class input options as ones and zeros
Date: Sat, 28 Jan 2023 07:44:32 -0500 (EST)

Follow-up Comment #1, bug #63713 (project octave):

I can understand the difference here


>> median(single([]))
ans =
  single
   NaN

>> median(int8([]))
ans =
  int8
   0


happening because there is no int8 NaN value.  But I'm not sure that it would
be good for the NaN function itself to return something other than an actual
NaN value.  So I'd favor only defining NaN for single and double.

If we do decide to make this change, do we also change Inf to return the same
as intmin/intmax for integers?  I also don't think that's the right thing to
do.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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