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_duplicate

Function Documentation

int rc_matrix_duplicate(rc_matrix_t A, rc_matrix_t *B)

Duplicates the contents of matrix A and into matrix B.

If B is already the right size then its contents are overwritten. If B is unallocated or is of the wrong size then the memory is freed and new memory is allocated to hold the duplicate of A.

Parameters
  • A[in] Matrix to be duplicated

  • B[out] new matrix

Returns

0 on success, -1 on failure.