View source: R/kernel-to-matrices.R
check_symmetric | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.