typedef struct _vsip_qr_attr_f { vsip_length n; vsip_length m; vsip_qrd_qopt Qopt; } vsip_qr_attr_f; typedef vsip_qr_attr_f vsip_cqr_attr_f; void vsip_qrd_getattr_f(const vsip_qr_f *qrd, vsip_qr_attr_f *attr); void vsip_cqrd_getattr_f(const vsip_cqr_f *qrd, vsip_cqr_attr_f *attr);
This function retrieves the attributes of a QR decomposition object and stores them in a vsip_dqr_attr_p structure. The attributes provide complete information about the QR decomposition, including the dimensions of the original matrix and the options used during creation.
const vsip_dqr_p* qrd: Pointer to the QR decomposition object.
vsip_dqr_attr_p* attr: Pointer to the attribute structure where the QR decomposition attributes will be stored.
vsip_qr_f *qrd; vsip_qr_attr_f attr; vsip_length m = 100, n = 50; // Create a QR decomposition object qrd = vsip_qrd_create_f(m, n, VSIP_QRD_SAVEQ); if (qrd == NULL) { // Handle error } // Get the attributes of the QR decomposition object vsip_qrd_getattr_f(qrd, &attr); printf("QR decomposition attributes:\n"); printf(" Matrix dimensions: %lu x %lu\n", attr.m, attr.n); printf(" QR option: %d\n", attr.qopt); vsip_qrd_destroy_f(qrd);