Closed characat0 closed 2 months ago
Why is this needed? What test was this for?
This test errored in my machine, I've added the specs and since another test in the same file also checks for approx equality I think this might have been what the author had intended
I see. Yes looking at it, it can be dependent on how your CPU gets optimized since SIMD allows for reordering of floating point operations, and (x + y) + z
is not equal to x + (y + z)
in floating point, and this is the cause of the difference.
Checklist
Additional context
Check for approximate equality instead of exact equality.