check_symmetric {MagmaClustR} | R Documentation |
If a matrix is non-symmetric due to numerical errors, round with a decreasing number of digits until the matrix becomes symmetric.
check_symmetric(mat, digits = 10)
mat |
A matrix, possibly non-symmetric. |
digits |
A number, the starting number of digits to round from if
|
A matrix, rounded approximation of mat
that is symmetric.
TRUE