[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62319] Another nchoosek bug for integer input
From: |
Arun Giridhar |
Subject: |
[Octave-bug-tracker] [bug #62319] Another nchoosek bug for integer inputs |
Date: |
Sat, 16 Apr 2022 18:11:06 -0400 (EDT) |
Follow-up Comment #6, bug #62319 (project octave):
@Rik in comment #5: sounds like a very good tradeoff. I had tried a similar
if-check but instead of isinteger like your fix I was comparing the pairwise
products to intmax and falling back to the slower code if necessary. The
isinteger use is definitely faster, and avoids double-computation of numer and
denom.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62319>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/