geometric_algebra
nalgebra
geometric_algebra | nalgebra | |
---|---|---|
2 | 20 | |
42 | 3,743 | |
- | 1.4% | |
5.4 | 7.8 | |
8 months ago | 7 days ago | |
Rust | Rust | |
MIT License | 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.
geometric_algebra
-
Rapier is a set of 2D and 3D physics engines written in Rust
I got sucked down a Geometric Algebra rabbit hole a few months ago, which seems like a remarkably concise and intuitive way to work in a very wide variety of geometries, including 2D, 3D, 4D+, non-euclidean etc. I've wondered if GA would make a good foundation for a physics engine...
There are a few small rust libraries that look interesting [1][2], but none with a lot of traction.
Has anyone looked into this?
[1]: https://crates.io/keywords/geometric-algebra
[2]: https://github.com/Lichtso/geometric_algebra
If you dare, a good place to jump in might be Freya Holmér's Why can't you multiply vectors? - https://www.youtube.com/watch?v=htYh-Tq7ZBI
-
Geometric Algebra to Geometric Computing Software Developers
The GA community in general is very small. So yes, tooling could be better, but IMO that is not even the problem. The lack of understanding how to use it is, because GA is not explicitly taught in schools or universities.
I have written a compiler which generates SIMD ready code for the desired GAs. You can then use that output as a normal library for your application.
https://github.com/Lichtso/geometric_algebra
nalgebra
-
Xkcd 2916: Machine
Ok, so this uses https://rapier.rs/ which is very cool
Rapier, alongside https://nalgebra.org/ (which it uses underneath) has seriously good documentation and some advanced features like cross-platform determinism (something made hard by the way floating point differs between platforms)
-
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
-
Science-related crates that I should have a look at?
nalgebra is for linear algebra.
-
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
What are some alternatives?
Decapodes.jl - A framework for composing and simulating multiphysics systems
cgmath-rs - A linear algebra and mathematics library for computer graphics.
clifford - Geometric Algebra for Python
rust-ndarray - ndarray: an N-dimensional array with array views, multidimensional slicing, and efficient operations
ganja.js - :triangular_ruler: Javascript Geometric Algebra Generator for Javascript, c++, c#, rust, python. (with operator overloading and algebraic literals) -
glam-rs - A simple and fast linear algebra library for games and graphics
g3 - Neat 3D math and graphics library
rust-blas - BLAS bindings for Rust
gatl - GATL: Geometric Algebra Template Library
rulinalg - A linear algebra library written in Rust
Klein - P(R*_{3, 0, 1}) specialized SIMD Geometric Algebra Library
scirust - Scientific Computing Library in Rust