tests/testthat/test-arithmetic.R

context("test-arithmetic")

x <- array(as.numeric(1:100), dim=c(10, 10))
y <- array(as.numeric(1:100), dim=c(10, 10))

test_that("cpp_add", {
  expect_equal(test_add_cpp(x, y), x + y)
})

Try the xtensor package in your browser

Any scripts or data that you put into this service are public.

xtensor documentation built on Feb. 16, 2023, 7:47 p.m.