[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/
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Gaël Bonithon, 2022/02/20
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Gaël Bonithon, 2022/02/21
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Markus Mützel, 2022/02/21
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Michael Leitner, 2022/02/21
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Markus Mützel, 2022/02/21
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Michael Leitner, 2022/02/21
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Markus Mützel, 2022/02/22
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Michael Leitner, 2022/02/22
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares,
Gaël Bonithon <=
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Gaël Bonithon, 2022/02/23
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Michael Leitner, 2022/02/23
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Gaël Bonithon, 2022/02/23
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Markus Mützel, 2022/02/26
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Gaël Bonithon, 2022/02/27
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Markus Mützel, 2022/02/27
- [Octave-bug-tracker] [bug #61319] idivide fails to distinguish between ceil and floor for inputs close to perfect squares, Gaël Bonithon, 2022/02/27