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

add rank-1 update of Cholesky decomposition #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AndersonYin
Copy link

I've implemented the rank-one update of Cholesky decomposition following the paper (Krause & Igel, 2015).

references: Krause, O., & Igel, C. (2015, January). A more efficient rank-one covariance matrix update for evolution strategies. In Proceedings of the 2015 ACM Conference on Foundations of Genetic Algorithms XIII (pp. 129-136).

Comment on lines +4 to +6
pub trait CholeskyUpdate<F> {
fn cholesky_update_inplace(&mut self, update_vector: &Array1<F>);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add documentation to this trait?

let mut w=update_vector.to_owned();
let mut b=F::from(1.0).unwrap();
for j in 0..n{
let ljj=self[(j,j)];
Copy link
Collaborator

Choose a reason for hiding this comment

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

For indexing, use the traits in index.rs, which are faster in release mode.

@YuhanLiin
Copy link
Collaborator

Can you merge cholesky_inplace.rs into cholesky.rs? They seem to be related algorithms.

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