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

Parameter D in Eigenbasis Calculation from Pivoted Cholesky Output #287

Merged
merged 1 commit into from
Aug 19, 2019

Conversation

thogerig
Copy link
Member

Fixes #164

The mass matrix parameter D is in our situation a scalar, which is set to 1.0. Since there is no occasion to be found where we would have to change this, I would also propose to remove the exposure of this parameter.

In a future case, in which the current calculation needs to be adapted with a different D, I would propose to define it as a separate function.

…scalar (1.0) without a need to be changed. Relates to issue unibas-gravis#164.
@thogerig thogerig requested a review from marcelluethi August 14, 2019 15:43
@marcelluethi
Copy link
Contributor

@thogerig Thanks a lot for addressing this issue.

I agree that this parameter should not be an argument that the user can chose.
Yet, as it seems to be important in the calculation and seems to have a meaning, I would prefer not to drop it altogether.
How about introducing it as a value val D = 1 inside the function? We would then be reminded whenever we look at the method, that there is such a parameter D which can play a role. Ideally, we would also add a comment explaining its effect and why we keep it fixed.

@thogerig
Copy link
Member Author

@marcelluethi Thanks for your input.

To me this seems like a good idea. I have updated the pull request with a reintroduction of D and a description with a pointer to further literature.

// Here it can be written as a scalar value.
// For more information in regards to situations where D might be adapted, please start with
// "On the Low-rank Approximation by the PivotedCholesky Decomposition" (H. Harbrecht, M. Peters, R. Schneider)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this comment somewhat confusing. Why is the matrix a scalar in this case? Where in the paper can we find the explanation? At least a first quick look at the paper does not reveal a discussion regarding the parameter D.

@marcelluethi marcelluethi merged commit 98b9995 into unibas-gravis:develop Aug 19, 2019
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