This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_algebra_qr_decomp

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.