This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 182
modified laplacian_matrix to achieve speed-up #1191
Merged
sbromberger
merged 6 commits into
sbromberger:master
from
dahtah:faster_laplacian_matrix
Apr 4, 2019
Merged
modified laplacian_matrix to achieve speed-up #1191
sbromberger
merged 6 commits into
sbromberger:master
from
dahtah:faster_laplacian_matrix
Apr 4, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ref: #1168 |
Codecov Report
@@ Coverage Diff @@
## master #1191 +/- ##
==========================================
+ Coverage 99.62% 99.62% +<.01%
==========================================
Files 93 93
Lines 4270 4271 +1
==========================================
+ Hits 4254 4255 +1
Misses 16 16 |
Could you post some benchmarks? |
sbromberger
reviewed
Apr 1, 2019
Here are some numbers (v1.0.3 on Linux). On some graphs the gain is massive. For
The old version gives:
and the new
On
Old:
New:
On other graphs the difference is less spectacular but still significant:
Old:
New:
|
These benchmarks are really compelling. Thanks. |
sbromberger
approved these changes
Apr 4, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For some reason sparse + Diagonal is very slow. Modified laplacian_matrix to use sparse + sparse instead. This achieves a 100x speed-up in some cases.