ndtensor

Crates.iondtensor
lib.rsndtensor
version0.1.0
sourcesrc
created_at2024-04-13 20:48:05.011599
updated_at2024-04-24 22:14:57.179039
descriptionndtensor is an n-dimensional tensor library for Rust.
homepagehttps://github.com/FL03/ndtensor/wiki
repositoryhttps://github.com/FL03/ndtensor
max_upload_size
id1207816
size92,301
Joe McCain III (FL03)

documentation

README

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

Commit count: 23

cargo fmt