Function rc_matrix_symmetrize#

Function Documentation#

int rc_matrix_symmetrize(rc_matrix_t *P)#

Symmetrizes a square matrix.

P_sym = (P+P^T)/2

Parameters:

P – pointer to matrix to symmetrize

Returns:

0 on success, -1 on failure