mirror of
https://github.com/opencv/opencv.git
synced 2026-09-25 04:09:57 +03:00
Merge pull request #30033 from asmorkalov:as/texpr_inplace
Update TExpr inplace check to handle float arithmetics optimizations.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user