[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #30295] interpN input validation needs improve
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #30295] interpN input validation needs improvement |
Date: |
Mon, 19 Sep 2011 03:01:25 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 |
Follow-up Comment #7, bug #30295 (project octave):
My only comment would be to check for an integer using
m == fix (m)
rather than
round (m) == m
One can use any of the chopping functions (fix, floor, ceil, round) for this
test. I've benchmarked them all in prior work and fix() is the fastest. I'm
trying to get this convention established in the Octave code rather than the
"x == round (x)" which is ubiquitous in Matlab code.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30295>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/