Skip to content
fn

lapack_lu_factor_f32

void lapack_lu_factor_f32(const float * A, int m, int n, float * LU_out, int * ipiv_out, int * info)

Single-precision LU factorisation (packed format).

Writes the LAPACK-native packed LU output (lower triangle = LL without its unit diagonal, upper triangle = UU) into LU_out, along with the pivot indices into ipiv_out. Intended for use with lapack_lu_solve_f32 so the factorisation can be reused across many right-hand sides.

References

LAPACK sgetrf_.

Parameters

Aconst float*
Row-major n×nn \times n input.
nint
Side length.
LU_outfloat*
Packed LU output (row-major).
ipiv_outint*
1-based pivot indices, length nn.
infoint*
LAPACK status word.