View source: R/constraints_utils.R
| symmetrize_or_stop | R Documentation |
Measures ||A - A'||_F / ||A||_F. Below rtol the two
triangles are averaged and the result is marked symmetric; above it the
function stops. Asymmetry is an input error, never something a PSD remedy
repairs.
symmetrize_or_stop(A, rtol = 1e-10, name = "A")
A |
square numeric matrix or Matrix::Matrix |
rtol |
relative asymmetry allowed (default 1e-10) |
name |
label used in the error message |
a symmetric Matrix (dense or sparse as supplied)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.