is_diagonal | R Documentation |
This internal function is used to determine whether a square matrix
is diagonal (within a specified tolerance). Returns TRUE
when the absolute values of all off-diagonal elements
are below tol
, using all.equal()
.
is_diagonal(A, tol = .Machine$double.eps * 100, symmetric = FALSE)
A |
Square matrix. No check is done. |
tol |
Numeric to specify |
symmetric |
If |
all.equal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.