Merge pull request #30033 from asmorkalov:as/texpr_inplace

Update TExpr inplace check to handle float arithmetics optimizations.
This commit is contained in:
Alexander Smorkalov
2026-09-22 12:07:35 +03:00
committed by GitHub
+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