Skip to main content

lapack_inject/
types.rs

1//! LAPACK type definitions.
2
3#![allow(non_camel_case_types)]
4
5/// Integer type for LAPACK operations (LP64: 32-bit).
6#[cfg(not(feature = "ilp64"))]
7pub type lapack_int = i32;
8
9/// Integer type for LAPACK operations (ILP64: 64-bit).
10#[cfg(feature = "ilp64")]
11pub type lapack_int = i64;
12
13/// Alias for backward compatibility
14pub type lapackint = lapack_int;
15
16/// LAPACKE row-major matrix layout.
17pub const LAPACK_ROW_MAJOR: lapack_int = 101;
18
19/// LAPACKE column-major matrix layout.
20pub const LAPACK_COL_MAJOR: lapack_int = 102;
21
22// Complex type aliases for lapack-sys compatibility
23pub type lapack_complex_float = num_complex::Complex32;
24pub type lapack_complex_double = num_complex::Complex64;