test_that("getSVD", {
})
library("BiocSingular")
test_that(".getUV", {
mat <- matrix(runif(1000, 1, 100), nrow = 100)
svd <- runSVD(mat, k = 1, BSPARAM = IrlbaParam())
expect_equal(
abs(compartmap:::.getUV(mat, k = 1, "left")),
abs(svd$u)
)
expect_equal(
abs(compartmap:::.getUV(mat, k = 1, "right")),
abs(svd$v)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.