matrixmultiply
nalgebra
Our great sponsors
matrixmultiply | nalgebra | |
---|---|---|
4 | 19 | |
199 | 3,680 | |
- | 2.4% | |
6.0 | 7.8 | |
19 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.
matrixmultiply
-
Help understanding the state of ndarrays and linalg in Rust.
The matrixmultiply crate from the ndarray author (https://github.com/bluss/matrixmultiply) is one such implementation. It uses the same algorithm as the BLIS project (https://www.cs.utexas.edu/users/flame/pubs/TOMS-BLIS-Analytical.pdf) to partition the problem and exploit the cache hierarchy. It isn't as well tuned as eg. Intel MKL or BLIS, but the results are very respectable.
-
faer 0.8.0 release
Do you plan to support integers as native types? I know there is an issue for the crate matrixmultiply for that, it seems it can be problematic because of overflow.
-
Faster `matrixmultiply` ?
There's a famous crate [matrixmultiply](https://github.com/bluss/matrixmultiply) for matrix-matrix multiplication in Rust. But it's a bit slow for me.
-
Nim vs Rust Benchmarks
In my benchmarks, Nim is faster than Rust:
- multithreading runtime (i.e Rayon vs Weave https://github.com/mratsim/weave)
- Cryptography: https://hackmd.io/@gnark/eccbench#Pairing
- Scientific computing / matrix multiplication: https://github.com/bluss/matrixmultiply/issues/34#issuecomme...
There is no inherent reason why a Nim program would be slower than Rust.
nalgebra
-
Geometric Algebra to Geometric Computing Software Developers
> Some GA libraries[1][2] define types for the different kind of objects (grades)
That's nice!
This reminds of me things like, linear algebra libraries that will type-check matrices so that a 2x2 matrix can't be added to a 2x3 matrix (but then you can have a dynamic matrix that will error only in runtime), like https://nalgebra.org/ and others.
-
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 are some alternatives?
cgmath-rs - A linear algebra and mathematics library for computer graphics.
rust-ndarray - ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations
glam-rs - A simple and fast linear algebra library for games and graphics
rust-blas - BLAS bindings for Rust
rulinalg - A linear algebra library written in Rust
scirust - Scientific Computing Library in Rust
arrayfire-rust - Rust wrapper for ArrayFire
rust-opencl - OpenCL bindings for Rust.
rust-GSL - A GSL (the GNU Scientific Library) binding for Rust
nphysics - 2 and 3-dimensional rigid body physics engine for Rust.
rust-gmp
QuantMath - Financial maths library for risk-neutral pricing and risk