mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
Disable min/max NaN propagation in test cxx11_tensor_expr
The current pmin/pmax implementation for Arm Neon propagate NaNs differently than std::min/std::max. See issue https://gitlab.com/libeigen/eigen/-/issues/1937
This commit is contained in:
parent
d2bb6cf396
commit
d4a727d092
@ -331,6 +331,7 @@ void test_minmax_nan_propagation_templ() {
|
||||
VERIFY((numext::isnan)(vec_res(i)));
|
||||
}
|
||||
|
||||
|
||||
// Test that NaNs do not propagate if we reverse the arguments.
|
||||
vec_res = vec_zero.cwiseMin(kNan);
|
||||
for (int i = 0; i < size; ++i) {
|
||||
@ -376,5 +377,10 @@ EIGEN_DECLARE_TEST(cxx11_tensor_expr)
|
||||
CALL_SUBTEST(test_type_casting());
|
||||
CALL_SUBTEST(test_select());
|
||||
CALL_SUBTEST(test_clip());
|
||||
|
||||
// Nan propagation does currently not work like one would expect from std::max/std::min,
|
||||
// so we disable it for now
|
||||
#if !EIGEN_ARCH_ARM_OR_ARM64
|
||||
CALL_SUBTEST(test_minmax_nan_propagation());
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user