1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! # lapack-inject
//!
//! LAPACK compatible interface backed by 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.
//!
//! ## Usage
//!
//! ```ignore
//! use lapack_inject::register_dgesv_lp64;
//!
//! // Register Fortran dgesv pointer (e.g., from scipy or Julia)
//! unsafe {
//! let status = register_dgesv_lp64(dgesv_ptr);
//! assert_eq!(status, 0);
//! }
//!
//! // Now lapack_inject exports dgesv_ symbol that can be used by other crates
//! ```
//!
//! ## lapack-src/lapack-sys Compatibility
//!
//! This crate exports a generated subset of Fortran-style LAPACK symbols such
//! as `dgesv_`, `dgetrf_`, and `dgesc2_`. Register LP64 or ILP64 function
//! pointers at runtime, and this crate provides those symbols to downstream
//! crates that expect a LAPACK provider.
//!
//! LAPACKE-style C entry points are exported for `dgesv`, `dgetrf`, `dgetri`,
//! and `dpotrf`, including `_64` variants and row-major layout handling.
//!
//! ## Supported Functions
//!
//! The generated Fortran surface supports:
//!
//! - `xGESV`, `xGETRF`, `xGETRS`, `xGETRI`, `xPOTRF`
//! - `xGESVD`
//! - `xGEQRF`, real `xORGQR`, complex `xUNGQR`
//! - `xTRTRS`
//! - `s/dSYEV`, `c/zHEEV`
//! - `xGEEV`
//! - supplemental complete-pivoting LU routines `xGETC2` and `xGESC2`
//!
//! The default build keeps the consumer-facing Fortran symbols LP64-compatible.
//! Register ILP64 host providers with the `_ilp64` registration functions; do not
//! enable the `ilp64` feature just because the host provider is ILP64. The feature
//! changes the consumer ABI too.
pub use *;
pub use *;
pub use *;
pub use *;