| Crates.io | lapack-inject |
| lib.rs | lapack-inject |
| version | 0.1.0 |
| created_at | 2026-01-22 23:59:10.525913+00 |
| updated_at | 2026-01-22 23:59:10.525913+00 |
| description | LAPACK compatible interface backed by runtime-registered Fortran LAPACK function pointers |
| homepage | |
| repository | https://github.com/shinaoka/lapack-inject |
| max_upload_size | |
| id | 2062995 |
| size | 949,083 |
LAPACK compatible interface backed by runtime-registered Fortran LAPACK function pointers.
This crate allows you to use LAPACK functions while the actual computation is performed by Fortran LAPACK functions provided at runtime. This is useful for integrating with Python (scipy) or Julia (libblastrampoline) where Fortran LAPACK pointers are available.
use lapack_inject::register_dgesv;
// Register Fortran dgesv pointer (e.g., from scipy or Julia)
unsafe {
register_dgesv(dgesv_ptr);
}
// Now lapack_inject exports dgesv_ symbol that can be used by other crates
This crate exports all Fortran-style LAPACK symbols defined in lapack-sys (e.g., dgesv_, dgetrf_, etc.). These symbols are compatible with the lapack-src crate. Register function pointers at runtime, and this crate will provide the symbols that other crates expect from lapack-src.
All 1315 LAPACK functions from lapack-sys are supported, including:
ilp64: Use 64-bit integers for LAPACK indices (ILP64 ABI)Licensed under either of:
at your option.