Skip to content
fn

lapack_ldl_factor_f32

void lapack_ldl_factor_f32(const float * A, float * A_out, int * ipiv, int n, int * info)

Single-precision symmetric indefinite LDL^T factorisation.

Bunch-Kaufman factorisation A=LDLTA = L D L^T for a symmetric (possibly indefinite) matrix. The packed LL + DD output is written to A_out alongside pivot indices in ipiv.

Math

A=L D LTA = L \, D \, L^T

References

LAPACK ssytrf_.

Parameters

Aconst float*
Row-major n×nn \times n symmetric input.
A_outfloat*
Packed factorisation (LAPACK ssytrf_ native layout, row-major).
ipivint*
Bunch-Kaufman pivot indices, length nn.
nint
Side length.
infoint*
LAPACK status word.