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_invert_matrix

Function Documentation

int rc_algebra_invert_matrix(rc_matrix_t A, rc_matrix_t *Ainv)

Inverts matrix A via LUP decomposition method.

Places the result in matrix Ainv. Any existing memory allocated for Ainv is freed if necessary and its contents are overwritten. Returns -1 if matrix is not invertible.

  • A[in] input matrix

  • Ainv[out] resulting inverted matrix


Returns 0 on success or -1 on failure.