is_identity_matrix | R Documentation |
Check if the passed entity is an identity matrix
is_identity_matrix(
value,
exact_dimension = NULL,
allow_null = FALSE,
tol = sqrt(.Machine$double.eps)
)
value |
the value to check |
exact_dimension |
If specified, the matrix must have the specified exact dimension |
allow_null |
If TRUE, allow NULL as a value |
## Not run:
# For assertion
assertthat::assert_that(qscheck::is_identity_matrix(value))
# For check
if (qscheck::is_identity_matrix(value)) {}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.