-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add new matrix addition method and improve performance of mmul and kroneckerProduct method #14
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
base: main
Are you sure you want to change the base?
Conversation
…and kroneckerProduct method
a8d5f86
to
27e7e9b
Compare
Looks that the use of callbacks for matrix operations is not the most performant approach. I propose to use directly the data in
|
Is this result based on the existing benchmark in the repo? Otherwise, can you please add the benchmark? |
…rseMatrix operations
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #14 +/- ##
===========================================
+ Coverage 55.60% 71.75% +16.14%
===========================================
Files 5 5
Lines 1453 1416 -37
Branches 46 72 +26
===========================================
+ Hits 808 1016 +208
+ Misses 641 400 -241
+ Partials 4 0 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I'm sorry if this sounds harsh, but homemade benchmark scripts have little to no validity. There are libraries that are made to create benchmarks correctly and take care of everything including statistical stuff. Can you explain why you didn't use one of them? |
Also, your code in src/index.js introduces variables names and patterns that are really not obvious (csr, csc, coo, format). It should at least have some comments and jsdoc, and also external links for references. And again, please do not use Spanish in code or comments. |
You can try to use mitata: https://github.com/evanwashere/mitata |
…and kroneckerProduct method
…rseMatrix operations
0f1cdb9
to
c050090
Compare
This comparison was with an assumption that is not always true so thy need to reorder the data reduce the current performance but it is still better |
Yes you are just right, I also noticed some inconsistencies, I did try with benchmark package before read your comments. I hope it looks much better now |
…matrix into improve-performance-mmul
Please pay attention. You force-pushed on the merge that I took time to make. I merged again, so please don't overwrite it again. |
ac26a10
to
22d602d
Compare
I apologise, if you give me the rights to create a PR directly into mljs I could do it. I did force it again, just to include a missing change. |
This has nothing to do with permissions. Apologizing doesn't make it more ok to cancel my work again |
@jobo322 Please could you add the matrix density of the ibuprofen simulation |
Please don't merge this until I return from holiday. (and try to merge back with my work (ac26a10), which was force pushed out of this branch) |
@lpatiny in the particular of ibuprofen, the size of the matrices increase with decreasing of the density, in those cases, the new mmul method is still faster |
…prove performance
…matrix into improve-performance-mmul
… an utility function
@jobo322 Is this ready for a full review? |
yes, I did implement your suggestion about the documentation and use the specialized matrix functions as external functions |
No description provided.