Nothing
test_that("duplication matrix n = 2", {
D <- duplication_mat(2)
m <- matrix(c(1, 0, 0,
0, 1, 0,
0, 1, 0,
0, 0, 1), ncol = 3, byrow = TRUE)
expect_equal(D, m)
})
test_that("duplication matrix n = 3", {
D <- duplication_mat(3)
m <- matrix(c(1, 0, 0, 0, 0, 0,
0, 1, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0,
0, 1, 0, 0, 0, 0,
0, 0, 0, 1, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 1), ncol = 6, byrow = TRUE)
expect_equal(D, m)
})
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.