Adelsbach/VSIPL
Core Programming Reference Guide
DD-00016-015
Core

This manual is preliminary and incomplete.
While our Core implementation implements all functions given in the standard we are still working on completing this documentation.

Please refer to the VSIPL standard for a complete function reference of the Core profile until we have completed work on this documentation.

6.3.4 vsip_dlud_p - Perform LU Decomposition

int vsip_lud_f(const vsip_lu_f* lud, const vsip_mview_f* A); 
int vsip_clud_f(const vsip_clu_f* lud, const vsip_cmview_f* A);
Description

This function performs LU decomposition of matrix A using the pre-allocated LU decomposition object lud. The decomposition computes:

A =PLU

where:

The function uses partial pivoting for numerical stability. The decomposed factors are stored within the LU decomposition object and can be used for subsequent operations like solving linear systems.

Parameters
Return Value
Example

vsip_lu_f *lu_obj; 
vsip_mview_f *matrix_A; 
int result; 
 
// Assuming lu_obj and matrix_A have been properly initialized 
// with matching dimensions 
result = vsip_lud_f(lu_obj, matrix_A); 
 
if (result != 0) { 
    // Handle error (e.g., singular matrix) 
}
Notes