R/shape.R

Defines functions rray_shape rray_shape2

rray_shape <- function(x) {
  # removes vctrs is.object() restriction
  rray_dim(x)[-1]
}

rray_shape2 <- function(x, y) {
  rray_dim2(rray_shape(x), rray_shape(y))
}
r-lib/rray documentation built on Feb. 3, 2020, 8:14 p.m.