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_matrix_add

Function Documentation

int rc_matrix_add(rc_matrix_t A, rc_matrix_t B, rc_matrix_t *C)

Adds matrices A+B and places the result in C.

The original contents of C are safely freed if necessary to avoid memory leaks. Use rc_matrix_add_inplace if you do not need to keep the contents of one of these matrices after addition.

  • A[in] First matrix

  • B[in] second matrix

  • C[out] result


Returns 0 on success or -1 on failure.