#tensor #n-dimensional #math #ndarray

no-std ndtensor

ndtensor is an n-dimensional tensor library for Rust

3 unstable releases

0.1.0 Apr 24, 2024
0.1.0-nightly Apr 20, 2024
0.0.0 Apr 13, 2024

#317 in Data structures

Download history 70/week @ 2024-04-07 151/week @ 2024-04-14 211/week @ 2024-04-21 7/week @ 2024-04-28

439 downloads per month

Apache-2.0

86KB
2.5K SLoC

ndtensor

Clippy Rust

crates.io docs.rs


Welcome to ndtensor, a Rust library for n-dimensional tensors designed for flexibility and performance.

Getting Started

Building from the source

Clone the repository

git clone https://github.com/FL03/ndtensor

Usage

extern crate ndtensor;

use ndtensor::Tensor;

fn main() -> Result<(), Box<dyn std::error::Error> {
    let shape = (3, 3);
    
    let tensor = Tensor::linspace(0f64, 8f64, 9).into_shape(shape)?;
    println!("{:?}", tensor);

    Ok(())
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Dependencies

~2.3–3.5MB
~69K SLoC