inst/unitTests/test_getHPI.R

test_getHPI = function() {
  x <- matrix(c(1, 2, 3, 1), nrow = 2, ncol = 2, byrow = TRUE)
  y <- matrix(c(0, 3, 2, 1), nrow = 2, ncol = 2, byrow = TRUE)
  RUnit::checkEquals(ncol(getHPI(x, y, 'combine')), 4L)
  RUnit::checkEquals(ncol(getHPI(x, y, 'kron.prod')), 4L)

}
mrbakhsh/HPiP documentation built on March 28, 2023, 4:35 p.m.