typedef struct _vsip_lu_attr_g { vsip_length n; } vsip_lu_attr_g; typedef vsip_lu_attr_g vsip_lu_attr_f; typedef vsip_lu_attr_g vsip_clu_attr_f; void vsip_lud_getattr_f(const vsip_lu_f *lu, vsip_lu_attr_f *attr); void vsip_clud_getattr_f(const vsip_clu_f *lu, vsip_lu_cattr_f *attr);
This function retrieves the attributes of an LU decomposition object, this currently includes a single attribute called n for the row and column element count of the square matrix.
const vsip_dlu_p* lu: Pointer to the LU decomposition object.
vsip_lu_dattr_p* attr: Pointer to a structure where the attributes will be stored.
vsip_lu_f *lu_obj; vsip_lu_attr_f attr; // Assuming lu_obj has been properly initialized vsip_lud_getattr_f(lu_obj, &attr); // attr.n - Number of rows and columns of the square matrix