Update TExpr inplace check to handle float arithmetics optimizations.

This commit is contained in:
Alexander Smorkalov
2026-09-22 09:31:13 +03:00
parent f2f470a455
commit 2e72f5b1de
+1 -1
View File
@@ -464,7 +464,7 @@ TEST(Core_TExpr, math_inplace)
Mat ref = expr1("sqrt({0})", { a });
std::vector<Mat> out{ a }; // preallocated == input => in-place
cv::texpr("sqrt({0})", std::vector<Mat>{ a }, out);
EXPECT_EQ(0, cvtest::norm(out[0], ref, NORM_INF));
EXPECT_LE(cvtest::norm(out[0], ref, NORM_INF), FLT_EPSILON);
}
// ------------------------------------------------------------------------------------- select