Skip to content
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

Merged
merged 7 commits into from
Nov 14, 2023
Merged

cholesky update #338

merged 7 commits into from
Nov 14, 2023

Conversation

olofkallander
Copy link
Contributor

@olofkallander olofkallander commented Nov 4, 2023

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.
..

}

#define EXPECT_ERROR_LT(a, b, relativeError) \
Copy link
Member

@RicardoMDomingues RicardoMDomingues Nov 7, 2023

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

https://github.com/google/googletest/blob/main/docs/reference/assertions.md#expect_double_eq-expect_double_eq

Copy link
Contributor Author

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.

if (d2 != d4)
{
if (det(m) == 0 || det(transpose(m)) == 0)
Copy link
Member

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

@olofkallander olofkallander merged commit fc23bb4 into master Nov 14, 2023
0 of 4 checks passed
@olofkallander olofkallander deleted the choleskyupd branch April 5, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants