Function rc_matrix_duplicate#
Defined in File matrix.h
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.