powered by
assert_is_symmetric_matrix(x, tol = 100 * .Machine$double.eps, ...) is_symmetric_matrix(x, tol = 100 * .Machine$double.eps, .xname = get_name_in_parent(x), ...)
tol
all.equal
TRUE
m <- diag(3); m[3, 1] <- 1e-100 assert_is_symmetric_matrix(m) #These examples should fail. dont_stop(assert_is_symmetric_matrix(m, tol = 0))
Run the code above in your browser using DataLab