rust-ndarray
nalgebra
Our great sponsors
- ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
- SonarLint - Clean code begins in your IDE with SonarLint
- InfluxDB - Access the most powerful time series database as a service
rust-ndarray | nalgebra | |
---|---|---|
19 | 18 | |
2,809 | 3,217 | |
2.1% | 1.4% | |
6.6 | 8.6 | |
5 days ago | 7 days ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rust-ndarray
-
faer 0.8.0 release
Sadly Ndarray does look a little abandoned to me: https://github.com/rust-ndarray/ndarray
-
Status and Future of ndarray?
The date of the last commit of [ndarray](https://github.com/rust-ndarray/ndarray) lies 6 month in the past while many recent issues are open and untouched.
-
Announcing Burn: New Deep Learning framework with CPU & GPU support using the newly stabilized GAT feature
Burn is different: it is built around the Backend trait which encapsulates tensor primitives. Even the reverse mode automatic differentiation is just a backend that wraps another one using the decorator pattern. The goal is to make it very easy to create optimized backends and support different devices and use cases. For now, there are only 3 backends: NdArray (https://github.com/rust-ndarray/ndarray) for a pure rust solution, Tch (https://github.com/LaurentMazare/tch-rs) for an easy access to CUDA and cuDNN optimized operations and the ADBackendDecorator making any backend differentiable. I am now refactoring the internal backend API to make it as easy as possible to plug in new ones.
-
Pure rust implementation for deep learning models
Looks like it's an open request
-
The Illustrated Stable Diffusion
https://github.com/rust-ndarray/ndarray/issues/281
Answer: you can’t with this crate. I implemented a dynamic n-dim solution myself but it uses views of integer indices that get copied to a new array, which have indexes to another flattened array in order to avoid duplication of possibly massive amounts of n-dimensional data; using the crate alone, copying all the array data would be unavoidable.
Ultimately I’ve had to make my own axis shifting and windowing mechanisms. But the crate is still a useful lib and continuing effort.
While I don’t mind getting into the weeds, these kinds of side efforts can really impact context focus so it’s just something to be aware of.
-
Any efficient way of splitting vector?
In principle you're trying to convert between columnar and row-based data layouts, something that happens fairly often in data science. I bet there's some hyper-efficient SIMD magic that could be invoked for these slicing operations (and maybe the iterator solution does exactly that). Might be worth taking a look at how the relevant Rust libraries like ndarray do it.
-
Rust or C/C++ to learn as a secondary language?
ndarray and numpy crates provide good way to operate on numpy ndarrays from python
-
Enzyme: Towards state-of-the-art AutoDiff in Rust
I don't think any of the major ML projects have GPU acceleration because ndarray doesn't support it.
-
Announcing Rust CUDA 0.2
Not sure about ndarray: https://github.com/rust-ndarray/ndarray/issues/840
-
Signal processing library
I used basic_dsp a while back and found it lacking. I was hoping to find something that uses the ndarray datatype but i'm not seeing this yet. If you're primarily trying to learn though it might not really matter which library you contribute to. As for myself, I just picked the one that was most used and actively worked on at the time. However I keep an eye out on other libraries; if I see something take off, I might switch over. Either way you'll learn and can point to it as work accomplished.
nalgebra
-
Has anyone worked on a math library before?
Maybe start by looking at https://nalgebra.org/ to see what rust math libraries might look like
-
faer 0.8.0 release
And Nalgebra, while better, also seems to have slowed down on commits and responses to issues and PRs. I have a PR there for a relatively simple wrapper type for row vectors which was explicitly requested by a maintainer, which hasn't even gotten a comment since for two weeks.
-
A Rust client library for interacting with Microsoft Airsim https://github.com/Sollimann/airsim-client
nalgebra (similar to Eigen in cpp)
-
What crates are considered as de-facto standard?
nalgebra
-
Hey Rustaceans! Got a question? Ask here! (31/2022)!
Take a look into math libraries, like glam, nalgebra, and cgmath. I've only used these through game engines, though, so I can't offer per-basis reviews/advice.
-
C++ is making me depressed / CUDA question
If you do not need GPU then I would recommend looking into Eigen in C++, nalgebra in Rust (with a BLAS in both cases for improved performance) or one of the above options (Julia / Python+JAX).
- Lightning talk: Stop writing Rust
-
-🎄- 2021 Day 19 Solutions -🎄-
I coded it in rust, with the very good lib nalgebra for the vector, point, matrix and SVD computation and petgraph for the graph, and I'm very happy with my math heavy, computer vision and no brute force solution.
-
Announcing Rust CUDA 0.2
It looks like nalgebra is already working on adding support for rust CUDA: https://github.com/dimforge/nalgebra/pull/1031
-
What is Rust NOT suitable for, architecturally?
Actually I would disagree with this somewhat. It's not as built out as Julia or python with third party crates, but that is likely to keep improving. The ability to implement the traits in std::ops means that the natural use of +, *, etc to "add" or "multiply" custom types is possible. There is already rug for big number / high precision calculations, nalgebra for linear algebra, among a couple others for ode solving etc. Rust's iterators are also ergonomically magnificent for math involving iteration. Where I would agree it is less ergonomic is for scientists that don't care about the speed gains from the rust memory management system having to deal with the borrow checker. With a little understanding of the way that works, it doesn't get in the way much IMO. Not saying it will ever be a go to language for scientific computation, just that it's more than possible, and can be just as enjoyable.
What are some alternatives?
cgmath-rs - A linear algebra and mathematics library for computer graphics.
Rust-CUDA - Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust.
rust-blas - BLAS bindings for Rust
rulinalg - A linear algebra library written in Rust
scirust - Scientific Computing Library in Rust
image - Encoding and decoding images in Rust
arrayfire-rust - Rust wrapper for ArrayFire
neuronika - Tensors and dynamic neural networks in pure Rust.
rust-opencl - OpenCL bindings for Rust.
rust-GSL - A GSL (the GNU Scientific Library) binding for Rust
utah - Dataframe structure and operations in Rust
nphysics - 2 and 3-dimensional rigid body physics engine for Rust.