tests/testthat/test-0F0.R

context("0F0")

test_that("0F0 is the exponential of the trace", {
  X <- toeplitz(c(3,2,1))/10
  obtained <- hypergeomPFQ(m = 10, a = NULL, b = NULL, x = X)
  expected <- exp(sum(diag(X)))
  expect_equal(obtained, expected)
})
stla/HypergeoMatRcpp documentation built on Nov. 5, 2019, 9:39 a.m.