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))
}

Try the rray package in your browser

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

rray documentation built on July 23, 2019, 5:04 p.m.