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

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

[Octave-bug-tracker] [bug #61319] idivide fails to distinguish between c


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares
Date: Tue, 22 Feb 2022 02:39:24 -0500 (EST)

Follow-up Comment #16, bug #61319 (project octave):

IIUC, `rdivide` (i.e. the `/` operator) is implemented on the "class level" of
the integer classes.
The "most-straightforward" implementation for a new "C++ divide" would
probably be an .oct file. Rik recently opened bug #62006 about a surprisingly
large overhead for calling those functions.
Alternatively, it might be possible to implement a new "C++ divide" operator
similarly to how the "rdivide" operator is implemented currently. But that
would mean to dive pretty deep into the interpreter. (It might still be useful
to have that "C++ divide" operator in other occasions as well.)
Anyway, it's hard to predict how performant which approach would be compared
to the other short of implementing them and timing their performance.

It would be ok for me to keep the implementation on the .m file level for the
moment. But if someone would like to dive into this and try different
implementations, that could be a nice project to familiarize themselves with
the .oct file interface and/or the interpreter.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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