Registry / other / blas
library0.23.0rscratesunverified

The package provides wrappers for BLAS (Fortran).

# Cargo.toml [dependencies] blas = "0.23.0"
INSTALL
IMPORT
SIG · BLAS
B
blas
otherrustv0.23.0
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.

dgemm
use blas::dgemm;

Perform a double-precision general matrix multiply (dgemm) using BLAS.

use blas::dgemm; let a = vec![1.0, 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 { dgemm(b'N', b'N', 2, 2, 2, 1.0, &a, 2, &b, 2, 0.0, &mut c, 2); } println!("Result: {:?}", c);
Debug
Known issues
gotchaRequires a BLAS library installed on the system (e.g., OpenBLAS, Intel MKL).
fix
Install a BLAS library and ensure it is linked correctly.
affects: >=0.23.0
breakingFunctions are unsafe due to raw FFI calls.
fix
Ensure correct dimensions and memory layout to avoid undefined behavior.
affects: >=0.23.0
Upgrade
Version history
0.23.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
26
Meta
1
Amazon
1
OpenAI (training)
1
Resources
blas — cargo add blas · libregistry