Function rc_algebra_lin_system_solve_qr#

Function Documentation#

int rc_algebra_lin_system_solve_qr(rc_matrix_t A, rc_vector_t b, rc_vector_t *x)#

Finds a least-squares solution to the system Ax=b for non-square A using QR decomposition method.

Places the solution in x.

Parameters:
  • A[in] matrix A

  • b[in] column vector b

  • x[out] solution column vector

Returns:

Returns 0 on success or -1 on failure.