Difference between max/min_element for simd and normal? #372
-
assert_eq!(glam::Vec3::new(0.32, f32::NAN, f32::NAN).max_element(), 0.32);
assert_eq!(glam::Vec3A::new(0.32, f32::NAN, f32::NAN).max_element(), 0.32); Top one is correct, bottom one is wrong. Is this intended? Wrong with Vec4 too, and correct with vec2, so is consistent. Can't find in documentation. |
Beta Was this translation helpful? Give feedback.
Answered by
bitshifter
Feb 16, 2023
Replies: 1 comment 1 reply
-
I'm not sure if this should be considered a bug or more just don't have any expectations when dealing with NaNs. The difference will be due to differences in implementation. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ixru
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
I'm not sure if this should be considered a bug or more just don't have any expectations when dealing with NaNs. The difference will be due to differences in implementation.