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: Gaël Bonithon
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 07:18:35 -0500 (EST)

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

Regarding the patch at the `.m` level, to integrate the modification proposed
by @mmuetzel in #12, I think that unfortunately we can't escape a distinction
between scalar and vector for `x` and `y`, which makes the code much bigger.
But I think that any more compact form pays off in computation time.

With this, we go from 100% increase in computation time (first version of the
patch) to about 60%, compared to the current version.

Note that the worst case is in fact when `y` is a scalar and `x` is a vector.
This is already noticeable with the current version, but only for "round",
which is the only case that uses integer arithmetic.

(file #52902)
    _______________________________________________________

Additional Item Attachment:

File name: bug61319-v3.patch              Size:3 KB
    <https://file.savannah.gnu.org/file/bug61319-v3.patch?file_id=52902>



    _______________________________________________________

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]