-
Notifications
You must be signed in to change notification settings - Fork 311
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
Feedback on Ndarray/Ndarray-linalg (from Reddit) #649
Comments
I have been reviewing our Happy to work on this and open a PR if it's desirable. I was planning to address best practices when it comes to views and references in the series I have been putting together, but my free time has been quite limited recently. I should be able to get back on it in 2 or 3 weeks. |
Before we advertise The first thing to note is its repeated use of The main issue with the qr code is the large amount of allocations. A typical call does the following:
Given that a typical use case in scientific calculations is to repeatedly perform QR factorization on a matrix of the same dimensions, it would be great to have a One possible design is what I did with my library for Gram Schmidt QR factorization. As an example, For one-off calculations, one can have convenience wrappers like this one here. I did the same thing when implementing Al-Mohy and Higham's matrix exponentiation algorithm here: https://github.com/SuperFluffy/rust-expm/blob/master/src/lib.rs#L332 |
I haven't had a chance yet to take a deeper look at the internal of Could we get something similar to #597 for |
I agree that ndarray-linalg should have an interface which minimize memory allocation, but it can coexist with current luxury interface as LUFactorize does.
This will be great, but I can get little time for working with it. I hope another main maintainer handles this if possible...
I've created ndarray-linalg crate around the comment #178 (comment) basically for my studies. ndarray crate itself is still not enough for general usage, and we need associated sub-crate. We have two options:
Monolithic ndarray crate is useful for users, and it will be also useful for developers because they have no need to consider which crate should implement some function. However, it will be harder for maintainer. |
I am not super familiar with the |
Some interesting feedback on using
ndarray
andndarray-linalg
to port a numerical routine from Python to Rust: Reddit threadActionable highlights:
Sweet closure 😛
The text was updated successfully, but these errors were encountered: