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

Improve performance by storing some parameters #195

Open
SamoylovMD opened this issue Jun 27, 2014 · 1 comment
Open

Improve performance by storing some parameters #195

SamoylovMD opened this issue Jun 27, 2014 · 1 comment

Comments

@SamoylovMD
Copy link
Contributor

I have an idea of performance enhancement when we are using some matrix parameters (i.e. rank, eigen decomposition, SVD) simultaneously. The idea is to store some parameters and change while we are using some algorithms. I.e. if we perform SVD decomposition and then call rank() method, we don't need to perform rank computation directly if we compute inner parameter rank while doing decomposition (we know that count of nonzero singular values IS a rank, so we can use direct search of nonzero singular values instead of O(n^3) algorithm for rank finding).

@vkostyukov vkostyukov added this to the la4j-0.6.0 milestone Jun 30, 2014
@vkostyukov
Copy link
Owner

Right. Caching the intermediate result (aka memoization) is the most common practice of performace improvements. Since, the la4j library is a single-threaded solution we could do that w/o worrying on thread-safity. Let's discuss this technique in 0.6.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants