Nothing
test_that("csolve returns a (generalized) inverse", {
# Simulate small matrices, one of them singular
X <- matrix(rnorm(30*30), 30, 30)
X_sing <- rbind(cbind(X[1:15, 1:15], X[1:15, 1:15]),
cbind(X[1:15, 1:15], X[1:15, 1:15]))
# Check combuted inverses
expect_equal(csolve(X) %*% X, diag(1, 30))
expect_equal((csolve(X_sing) %*% X_sing) %*% X_sing, X_sing)
})#TEST_THAT
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.