The Rust ecosystem is full of a data structure implementations that may be useful in machine learning. You can find multi-dimensional arrays, matrices, graphs, and a large list of tree libraries.
num has emerged as a de facto choice for numerical types, and a few other crates listed here show promise, but most ML frameworks have opted to implement their own data structures, so it’s too early to answer affirmatively to “Are we numpy yet?”
The list below is still lacking, so for more specific data structures don’t forget to search crates.io.
Graph data structure library. Provides graph types and graph algorithms.
A collection of numeric types and traits for Rust, including bigint, complex, rational, range iterators, generic integers, and more!
An n-dimensional array for general elements and for numerics. Lightweight array views and slicing; views support chunking and splitting.
A sparse matrix library
Rust implementation of Apache Arrow
A bioinformatics library for Rust. This library provides implementations of many algorithms and data structures that are useful for bioinformatics, but also in other fields.
A directed acyclic graph data structure library. It is Implemented on top of petgraph's Graph data structure and attempts to follow similar conventions where suitable.
A fast BVH using SAH
Sparse structures for N-dimensions
High-level bindings for Faiss, the vector similarity search engine
A wrapper type for storing/manipulating data on a GPU
The most advanced machine learning library in rust.
N-dimensional matrix class for Rust
dataframe structure and operations
Rust Data Science
A roulette wheel selection collection, used in genetic algorithm for fitness proportionate selection.
N-dimensional dense arrays.