R/compat-vctrs-math.R

Defines functions vec_math.vctrs_rray

#' @export
vec_math.vctrs_rray <- function(.fn, .x, ...) {
  out <- vec_math_base(.fn, .x, ...)
  dim <- rray_dim(out)

  new_rray(
    out,
    size = dim[1L],
    shape = dim[-1L],
    dim_names = rray_dim_names(out)
  )
}

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.