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.5.3 vsip_dqrd_getattr_p - Get QR Decomposition Attributes

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);
Description

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.

Parameters
Example

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);