R/product_by_element.R

Defines functions product_by_element

Documented in product_by_element

#' Product by element
#'
#' @author Alexey Larionov
#' @param x scalar, vector or matrix
#' @param y scalar, vector or matrix
#' @return The element-wise product of x and y
#' @export product_by_element
product_by_element <- function(x,y){
  z <- x * y # Test
  return(z)
}
alexey-larionov/tp2 documentation built on April 15, 2022, 8:35 p.m.