View source: R/constraints_utils.R
| is_psd | R Documentation |
is_psd() is TRUE when A is symmetric and every
eigenvalue exceeds -rtol * max(abs(diag(A))); is_pd() is TRUE when
every eigenvalue exceeds +rtol * max(abs(diag(A))). Both are shifted
Cholesky probes, so large sparse matrices never need an
eigendecomposition. is_spd() is a deprecated alias of is_psd() kept
for internal callers (its tol is the relative tolerance).
is_psd(A, rtol = .metric_rtol_default())
is_pd(A, rtol = .metric_rtol_default())
is_spd(A, tol = .metric_rtol_default())
A |
numeric matrix or Matrix::Matrix |
rtol |
relative tolerance (default |
tol |
relative tolerance (deprecated name; same as |
logical
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.