Function rc_algebra_lup_decomp#
Defined in File algebra.h
Function Documentation#
-
int rc_algebra_lup_decomp(rc_matrix_t A, rc_matrix_t *L, rc_matrix_t *U, rc_matrix_t *P)#
Performs LUP decomposition on matrix A with partial pivoting.
Places the result in matrices L,U,&P. Matrix A remains untouched and the original contents of LUP (if any) are freed and LUP are resized appropriately.
- Parameters:
A – [in] input matrix
L – [out] lower triangular
U – [out] upper triangular
P – [out] permutation matrix
- Returns:
Returns 0 on success or -1 on failure.