152 #endif // RC_ALGEBRA_H int rc_algebra_qr_decomp(rc_matrix_t A, rc_matrix_t *Q, rc_matrix_t *R)
Calculate the QR decomposition of matrix A.
int rc_algebra_fit_ellipsoid(rc_matrix_t points, rc_vector_t *center, rc_vector_t *lengths)
Fits an ellipsoid to a set of points in 3D space.
Struct containing the state of a vector and a pointer to dynamically allocated memory to hold its con...
Definition: vector.h:41
int rc_algebra_lup_decomp(rc_matrix_t A, rc_matrix_t *L, rc_matrix_t *U, rc_matrix_t *P)
Performs LUP decomposition on matrix A with partial pivoting.
void rc_algebra_set_zero_tolerance(double tol)
Sets the zero tolerance for detecting singular matrices.
int rc_algebra_invert_matrix(rc_matrix_t A, rc_matrix_t *Ainv)
Inverts matrix A via LUP decomposition method.
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...
int rc_algebra_invert_matrix_inplace(rc_matrix_t *A)
Inverts matrix A in place.
Struct containing the state of a matrix and a pointer to dynamically allocated memory to hold its con...
Definition: matrix.h:32
int rc_algebra_lin_system_solve(rc_matrix_t A, rc_vector_t b, rc_vector_t *x)
Solves Ax=b for given matrix A and vector b.