Function rc_matrix_add_inplace¶
Defined in File matrix.h
Function Documentation¶
-
int rc_matrix_add_inplace(rc_matrix_t *A, rc_matrix_t B)¶
Adds matrix A to B and places the result back in A.
The original contents of A are lost. Use rc_matrix_add if you wish to keep the contents of both matrix A and B after addition.
- Parameters
A – First matrix for addition and holder of the result
B – [in] Second matrix for addition
- Returns
Returns 0 on success or -1 on failure.