tests/testthat/test-reshape.R

context("test-reshape")

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

test_that("reshape", {
  expect_equal(dim(x), c(1, 10, 3))
  test_reshape_cpp(x)
  expect_equal(dim(x), c(3, 10))
})

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.