Commit 6fa818fb authored by jbroman@chromium.org's avatar jbroman@chromium.org

Fix Matrix3F::SolveEigenproblem symmetry check.

As described in http://www.viva64.com/en/b/0205/.

BUG=271533

Review URL: https://chromiumcodereview.appspot.com/22886002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217085 0039d316-1c4b-4281-b951-d872f2087c98
parent 9fedf4f8
......@@ -125,7 +125,7 @@ Vector3dF Matrix3F::SolveEigenproblem(Matrix3F* eigenvectors) const {
// The matrix must be symmetric.
const float epsilon = std::numeric_limits<float>::epsilon();
if (std::abs(data_[M01] - data_[M10]) > epsilon ||
std::abs(data_[M02] - data_[M02]) > epsilon ||
std::abs(data_[M02] - data_[M20]) > epsilon ||
std::abs(data_[M12] - data_[M21]) > epsilon) {
NOTREACHED();
return Vector3dF();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment