Repository navigation
Core fix mat matx mult - #13931
Merged
Merged
Core fix mat matx mult#13931
Conversation
Member
|
Could you please add test for that (use code from issue and add checks for 1-2 result values)? |
berak
force-pushed
the
core_fix_mat_max_mult
branch
from
February 28, 2019 11:31
2664dd4 to
6e2caf1
Compare
alalek
reviewed
Feb 28, 2019
| 13, 14, 15, 16); | ||
|
|
||
| ASSERT_EQ(0, countNonZero(M1*M2 - M1*M1)); | ||
| ASSERT_EQ(0, countNonZero(M2*M1 - M2*M2)); |
Member
There was a problem hiding this comment.
It is better to avoid using of countNonZero(), especially in case of floating-point matrixes.
Consider using this:
EXPECT_GE(1e-6, cvtest::norm(M1*M2, M1*M1, NORM_INF)) << Mat(M1*M2) << std::endl << Mat(M1*M1);
Contributor
Author
There was a problem hiding this comment.
oh sure, it's float -- my bad, i did not see it.
berak
force-pushed
the
core_fix_mat_max_mult
branch
from
February 28, 2019 13:24
6e2caf1 to
20afae5
Compare
opencv-pushbot
pushed a commit
that referenced
this pull request
Feb 28, 2019
Merged
SavyaSanchi-Sharma
pushed a commit
to SavyaSanchi-Sharma/opencv
that referenced
this pull request
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolves #13926
replace erroneous
+with*in mat.hpp