Function rc_algebra_qr_decomp#
Defined in File algebra.h
Function Documentation#
-
int rc_algebra_qr_decomp(rc_matrix_t A, rc_matrix_t *Q, rc_matrix_t *R)#
Calculate the QR decomposition of matrix A.
Uses householder reflection method. Matrix A remains untouched and the original contents of Q&R (if any) are freed and resized appropriately.
- Parameters:
A – [in] input matrix
Q – [out] orthogonal matrix output
R – [out] upper triangular matrix output
- Returns:
Returns 0 on success or -1 on failure.