| Crates.io | dotzilla |
| lib.rs | dotzilla |
| version | 0.2.1 |
| created_at | 2024-08-29 15:19:21.590283+00 |
| updated_at | 2025-06-09 10:16:10.547108+00 |
| description | Native Rust implementation of efficient basic linear algebra routines |
| homepage | |
| repository | https://github.com/antonio-leitao/dotzilla |
| max_upload_size | |
| id | 1356331 |
| size | 80,136 |
Efficient Rust implementation of basic linear algebra routines.
Run the following command in your project directory:
cargo add dotzilla
Or add the following line to your Cargo.toml:
[dependencies]
dotzilla = "0.2.0"
/// Example
use dotzilla::dot_product;
let a = vec![1.0f32, 2.0, 3.0];
let b = vec![4.0f32, 5.0, 6.0];
assert_eq!(dot_product(&a, &b), 32.0);
/// Example
use dotzilla::euclidean_distance;
let a = vec![1.0f32, 2.0, 3.0];
let b = vec![4.0f32, 5.0, 6.0];
assert_eq!(euclidean_distance(&a, &b), 5.196152);