Nothing
test_that("test.is_symmetric_matrix.a_symmetric_matrix.returns_logical", {
x <- diag(3)
x[3, 1] <- 1e-100
expect_true(is_symmetric_matrix(x))
expect_false(is_symmetric_matrix(x, tol = 0))
})
test_that("test.is_symmetric_matrix.a_symmetric_matrix.returns_true", {
x <- diag(3)
expect_true(is_symmetric_matrix(x))
})
test_that("test.is_symmetric_matrix.an_assymmetric_matrix.returns_false", {
x <- matrix(rnorm(9), nrow = 3)
expect_false(is_symmetric_matrix(x))
})
test_that(
"test.is_symmetric_matrix.not_coercible_to_matrix.throws_error",
{
suppressWarnings(expect_error(is_symmetric_matrix(sqrt)))
}
)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.