#' @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)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.