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

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

[Octave-bug-tracker] [bug #64692] colon range includes an extra value


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #64692] colon range includes an extra value
Date: Sat, 23 Sep 2023 11:50:53 -0400 (EDT)

Follow-up Comment #29, bug #64692 (project octave):

Re comment #27 and comment #26, the change of calling xteq in that place did
not affect 1.8 : 0.05 : 1.9 but did change the behavior of 1.85 : 0.05 : 1.9.
Previously that was returning the scalar value 1.85 but now it returns two
elements [1.85 1.90]. This was also the subject of the FIXME I wrote in my WIP
in comment #24, but I removed the FIXME after trying the code in comment #26.

This raises the question: Now that we have the warnings in place, do we even
need the extra code in xnumel_internal that tries to decrement / increment
n_elt? The same thing also applies to whether we can reduce the 3*eps
tolerance to zero. If anything was hitting against that limit, it was a
problematic input anyway, to be fixed with the help of the warnings.

WIP patch attached for that proposed change.


(file #55163)

    _______________________________________________________

Additional Item Attachment:

File name: eps.patch                      Size:1 KB
    <https://file.savannah.gnu.org/file/eps.patch?file_id=55163>



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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