Crates.io | ndim |
lib.rs | ndim |
version | 0.1.2 |
source | src |
created_at | 2024-07-26 18:33:12.665264 |
updated_at | 2024-07-26 19:17:26.822327 |
description | N-dimensional array for numerals in Rust similar to NumPy |
homepage | |
repository | https://github.com/noobsiecoder/ndim |
max_upload_size | |
id | 1316550 |
size | 6,964,269 |
NDim is an open-source Rust library for n-dimensional array storage, similar to NumPy in Python and ndarray in Rust. It aims to assist in scientific computation by providing efficient and flexible n-dimensional array data structures and operations. The library is designed to be performant and easy to use, making it an excellent choice for high-performance computing tasks in Rust.
Note: This project is still under development, and contributions are welcome!
Add the following to your Cargo.toml
:
[dependencies]
ndim = { git = "https://github.com/noobsiecoder/ndim.git" }
Here's a simple example of how to use NDim
:
use ndim::core::NdArray;
fn main() {
// Create an NdArray filled with a specific value
let shape = [3, 2];
let array = NdArray::<i32, 2>::zeros(shape);
// Print the array
for i in 0..array.shape()[0] {
for j in 0..array.shape()[1] {
println!("{}", array[[i, j]]); // access the value from memory
}
}
}
Detailed documentation is available on docs.rs.
Contributions from the community are welcomed! If you would like to contribute, please follow these steps:
Please ensure that your code adheres to the project's coding standards and includes appropriate tests.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions, issues, or suggestions, please open an issue on GitHub or contact the project maintainers.
Thank you for using NDim! I hope it helps you in your scientific computing endeavors.