Registry / other / matrixmultiply

matrixmultiply

JSON →
library0.3.10rscratesunverified

General matrix multiplication for f32 and f64 matrices with AVX/SSE2 support and multithreading.

# Cargo.toml [dependencies] matrixmultiply = "0.3.10"
INSTALL
IMPORT
SIG · MATRIXMULTIPLY
M
matrixmultiply
otherrustv0.3.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gemm
use matrixmultiply::gemm;

Performs general matrix multiplication (GEMM) for f32 matrices.

use matrixmultiply::gemm; fn main() { let a = vec![1.0f32, 2.0, 3.0, 4.0]; let b = vec![5.0, 6.0, 7.0, 8.0]; let mut c = vec![0.0; 4]; unsafe { gemm(2, 2, 2, 1.0, a.as_ptr(), 2, 1, b.as_ptr(), 2, 1, 0.0, c.as_mut_ptr(), 2, 1); } println!("Result: {:?}", c); }
Debug
Known issues
gotchaThe gemm function is unsafe due to raw pointer arguments.
fix
Ensure matrices have correct dimensions and strides.
affects: >=0.0.0
Upgrade
Version history
0.3.10latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
matrixmultiply — cargo add matrixmultiply · libregistry