Function rc_algebra_lin_system_solve¶
Defined in File algebra.h
Function Documentation¶
-
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.
Places the result in vector x. existing contents of x are freed and new memory is allocated if necessary.
- Parameters
A – [in] matrix A
b – [in] column vector b
x – [out] solution column vector
- Returns
Returns 0 on success or -1 on failure.