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.2 vsip_dqrd_destroy_p - Destroy QR Decomposition Object

int vsip_qrd_destroy_f(vsip_qr_f *qrd); 
int vsip_cqrd_destroy_f(vsip_cqr_f *qrd);
Description

This function releases the memory allocated for a QR decomposition object and destroys it.

Parameters
Return Value
Example

vsip_qr_f *qrd; 
vsip_mview_f *A; 
vsip_length m = 100, n = 50; 
 
// Create QR decomposition object 
qrd = vsip_qrd_create_f(m, n, VSIP_QRD_SAVEQ); 
if (qrd == NULL) { 
    fprintf(stderr, "Error: Could not create QR object\n"); 
    return -1; 
} 
 
status = vsip_qrd_destroy_f(qrd);