-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Adding eigs function #1705
Adding eigs function #1705
Conversation
Hi !
Given this, let me know how you want me to go ahead. If I only have bignumber implementation, and remove number implementation then the fraction type might give some trouble. Mixed type is definitely going to be an issue. |
How about these choices:
|
I think you have to add one more pro/con to the choices 1. and 2. : Option 1 will not work for new and/or custom data types out of the box, option 2 will. I'm quite sure option 2 with mixed content be much slower out of the box, and you're right that regular numbers is the main use case so it's important to optimize for that. However, option 2 does not exclude optimizing for numbers: if const createEigs = factory(name, dependencies, ({ add, subtract, ... }) => { ... } and you pass number-only implementations like We're talking about optimization without doing measurements though, so it's all based on assumptions. I think we can go in the following directions:
Would you find it interesting to do a bit of benchmarking? Or shall we leave it as it is now? (Both ok with me) |
How about lets keep the current version. So that people get to use it now. Meanwhile by next week I clean up the code and do some benchmarking as well as code up the option iii. Then, with the results of the benchmarking we can talk again to decide which direction we should move ahead. What do you think? |
Yes agree, let's be pragmatic here and leave the benchmarking and optimization for a next stage. I've done some more testing with the function. It works like a charm 👍. Some more thoughts about naming and API.
|
I have tried to address most of your comments.
|
Thanks for all the updates (2, 3, 5), I love it. Agree about sorting, let's see if there are options for improvement there in a later stage, I'm not sure. Will merge your work now, thanks again Arkajit! |
…/`const`, return `.values` as Matrix too when input is a Matrix. See #1705
I've done some minor tweaks in your code: it was failing on IE which doesn't support |
Great ! I am nearly done with the complex part will add that soon. |
The function |
Thats great... got busy with work... will soon come back to finish the other parts... |
👍 take it easy |
This function computes the eigenvalues and eigenvectors of real symmetric matrix.