fn
lapack_lu_f32
void lapack_lu_f32(const float * A, int n, int * ipiv, float * L_out, float * U_out, int * info)Single-precision LU decomposition split into separate L and U matrices.
Runs sgetrf_ and then explicitly extracts the unit-lower-triangular
and upper-triangular from the packed LAPACK output.
Math
where is encoded by ipiv.
References
LAPACK sgetrf_.
Parameters
Aconst float*Row-major input.
nintSide length.
ipivint*Pivot indices written by
sgetrf_ (1-based, length ).L_outfloat*Receives the unit-lower-triangular factor (row-major, ).
U_outfloat*Receives the upper-triangular factor (row-major, ).
infoint*LAPACK status word.