Skip to content
fn

lapack_lu_solve_f32

void lapack_lu_solve_f32(const float * LU, const int * ipiv, float * B, int n, int nrhs, int * info)

Single-precision LU-based linear solve with pre-computed factors.

Given the packed LU factorisation produced by lapack_lu_factor_f32 and its pivot indices, solves AX=BA X = B for many right-hand sides without re-factoring. B is overwritten with XX.

References

LAPACK sgetrs_.

Parameters

LUconst float*
Packed LU matrix from lapack_lu_factor_f32.
ipivconst int*
1-based pivot indices.
Bfloat*
Row-major n×nrhsn \times \text{nrhs}; overwritten by XX.
n, nrhsint
System dimensions.
infoint*
LAPACK status word.