-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cholesky update #338
cholesky update #338
Conversation
test/bwe/MatrixTests.cpp
Outdated
} | ||
|
||
#define EXPECT_ERROR_LT(a, b, relativeError) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a re-implementation of ASSERT_NEAR
/EXPECT_NEAR
provided by gtest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EXPECT_NEAR is comparing with absolute error. This one compares relative error.
It can be done differently I guess.
test/bwe/MatrixTests.cpp
Outdated
if (d2 != d4) | ||
{ | ||
if (det(m) == 0 || det(transpose(m)) == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this if
block is doing nothing
a9d9e5e
to
d4c2039
Compare
I will continue on this a bit more. There are a couple of minor things one can do before the decomposition to make it safer, and I have a number of more tests to add.
..