R/dot_product.R

Defines functions dot_product

Documented in dot_product

#' Dot product
#'
#' @author Alexey Larionov
#' @param x scalar, vector or matrix
#' @param y scalar, vector or matrix
#' @return The dot product of x and y
#' @export dot_product

# Should really leave test here

dot_product <- function(x,y){
  zz <- x %*% y # test
  return(zz)

}
alexey-larionov/tp2 documentation built on April 15, 2022, 8:35 p.m.