ensure_matrix_symmetry | R Documentation |
Ensures the symmetry of a square matrix by averaging it with its transpose. Optionally verifies that the matrix was close to symmetric before.
Makes sure zeros are "numerically zero", by truncating all small values.
ensure_matrix_symmetry(M, checkTol = Inf, alert = NULL)
truncate_zeros(M, tol = get_small_tol())
ensure_matrix_symmetry_and_truncate_zeros(
M,
tol = get_small_tol(),
checkTol = Inf
)
M |
Numeric square matrix. |
checkTol |
Positive scalar. If the maximum absolute difference between |
alert |
Passed to |
tol |
All entries with absolute value below this value are truncated to zero. |
The adjusted value of M
.
Other input validation functions:
checkGamma()
,
check_graph()
,
check_partial_matrix_and_graph()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.