About 233,000 results
Open links in new tab
  1. Which is the fastest way to get the absolute value of a number

    Mar 20, 2009 · On most CPUs and all compilers x = (x>=0)? x:-x; is fastest way to get absolute value, but in fact, often standard functions already offer this solution (e.g. fabs ()). It is …

  2. Why is the standard "abs" function faster than mine?

    Feb 3, 2021 · I figured that the fastest way to calculate absolute value would be to simply mask out the sign bit (the last bit in IEEE 754). I wanted to compare it's speed to the standard abs …

  3. Fastest way to find nearest value in vector - Stack Overflow

    Apr 6, 2010 · Note that the answer above (i.e 21 and 22) are the indexes if the items (this is how which() works in R), so if you want to get the actual values, you have use these indexes to get …

  4. c# - Fast integer ABS function - Stack Overflow

    Sep 20, 2016 · On my computer the first expression above is 8 times faster than Math.Abs when I loop over all integer values in the range [Int32.MinValue + 1, Int32.MaxValue - 1]. When I …

  5. numpy - Fastest way to get all the points between two (X,Y) …

    Fastest way to get all the points between two (X,Y) coordinates in python Asked 8 years ago Modified 3 years, 4 months ago Viewed 13k times

  6. What is the fastest fabsf (floating point absolute value function ...

    Jun 29, 2019 · The fastest way would probably involve manually changing the sign bit of the floating point value. I'm not going to benchmark this for you since it is 3am for me right now, …

  7. What is the fastest way to compute absolute value of integer of …

    Nov 5, 2015 · 1 This question already has answers here: Which is the fastest way to get the absolute value of a number (16 answers)

  8. Fastest way to calculate the abs ()-values of a complex array

    Nov 10, 2015 · Fastest way to calculate the abs ()-values of a complex array Asked 10 years, 1 month ago Modified 10 years, 1 month ago Viewed 5k times

  9. python - Fastest way to Shoelace formula - Stack Overflow

    I have made a function who calculate area polygon with Shoelace way. That's works perfectly but right now I wonder if there is not a faster way to have the same result. I want to know that …

  10. Fastest way to compute absolute value using SSE

    Sep 5, 2015 · Fastest way to compute absolute value using SSE Asked 10 years, 3 months ago Modified 1 year, 4 months ago Viewed 13k times