| Crates.io | vectormatrix |
| lib.rs | vectormatrix |
| version | 0.1.2 |
| created_at | 2025-02-12 06:20:44.758433+00 |
| updated_at | 2025-08-29 21:55:25.305035+00 |
| description | Idiomatic Matrix and Vector types for Rust |
| homepage | https://sealedabstract.com/code/vectormatrix |
| repository | https://github.com/drewcrawford/vectormatrix |
| max_upload_size | |
| id | 1552627 |
| size | 487,803 |
Idiomatic Matrix and Vector types for Rust.

This crate implements small stack-allocated Vector and Matrix types with the obvious semantics and operations.
no_std support and zero dependencies.
Vector<T, N> - An N-dimensional vector with elements of type TNormalizedVector<T, N> - A unit vector (length = 1.0) with compile-time guaranteeMatrix<T, R, C> - An R×C matrix with elements of type TMost obvious matrix and vector operations including:
repr(Rust) so that the compiler may optimize memory layout for SIMD
(Convert to your own repr(C) type if you need specific memory layout)The library provides trait implementations for standard numeric types:
f32, f64 (with additional operations like sqrt, sin, cos)u8, u16, u32, u64i8, i16, i32, i64std (default): Enables standard library support for floating point functions like sqrt, sin, cosstd: Core functionality works in no_std environments