int vsip_qrd_f(vsip_qr_f *qrd, const vsip_mview_f *a); int vsip_cqrd_f(vsip_cqr_f *qrd, const vsip_cmview_f *a);
This function performs the QR decomposition of matrix
using the provided QR decomposition object. The QR decomposition
expresses matrix
as the product of an orthogonal matrix
and an upper triangular matrix
, such that
.
vsip_dqr_p* qrd: Pointer to the QR decomposition object created with vsip_dqrd_create_p .
const vsip_dmview_p* a: Pointer to the input matrix to be decomposed. The matrix must have dimensions matching those specified when the QR object was created. May be overwritten by the decomposition.
Returns 0 on success.
Returns a non-zero value on error (e.g., if the matrix dimensions don’t match the QR object).
The input matrix
must have dimensions
that match those specified when the QR object was created.
The decomposition overwrites the contents of the QR object with the new decomposition.
The QR object can be reused for multiple decompositions by calling this function multiple times with different input matrices (as long as they have the same dimensions).