Welcome to ndtensor, a Rust library for n-dimensional tensors designed for flexibility and performance.
git clone https://github.com/FL03/ndtensor
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(())
}
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.