vsip_lu_f* vsip_lud_create_f(vsip_length n); vsip_clu_f* vsip_clud_create_f(vsip_length n);
This function creates an LU decomposition object for factoring an
matrix into the product of a lower triangular matrix
and an upper triangular matrix
. The object can be reused for multiple decompositions of matrices with the same
dimensions.
vsip_length n: Number of rows and columns in the matrix to be decomposed.
On success, a pointer to the newly created LU decomposition object is returned.
On error, NULL is returned.
vsip_lu_f *lu_obj; vsip_length n = 100; // Create LU decomposition object lu_obj = vsip_lud_create_f(n); if (lu_obj == NULL) { // Handle error }