typedef struct _vsip_chol_attr_f { vsip_length n; vsip_mat_uplo uplo; } vsip_chol_attr_f; typedef vsip_chol_attr_f vsip_cchol_attr_f; void vsip_chold_getattr_f(const vsip_chol_f *chold, vsip_chol_attr_f *attr); void vsip_cchold_getattr_f(const vsip_cchol_f *chold, vsip_cchol_attr_f *attr);
This function retrieves the attributes of a Cholesky decomposition object and stores them in the provided structure.
const vsip_dchol_p* chold: Pointer to the Cholesky decomposition object.
vsip_dchol_attr_p* attr: Pointer to the structure where attributes will be stored.
vsip_chol_f *chold; vsip_chol_attr_f attr; // Create object chold = vsip_chold_create_f(VSIP_MAT_LOW, 100); // Get attributes vsip_chold_getattr_f(chold, &attr); printf("Cholesky decomposition attributes:\n"); printf(" Matrix size: %lu x %lu\n", attr.n, attr.n); printf(" Stored triangle: %s\n", attr.uplo == VSIP_MAT_LOW ? "lower" : "upper"); // Destroy object vsip_chold_destroy_f(chold);