R/utils-math.R

Defines functions dot

#' @keywords internal
dot <- function(x, y, simplify = TRUE) {
  out <- t(x) %*% y
  if (simplify) out <- drop(out)

  out
}
hsloot/cvalr documentation built on Sept. 24, 2022, 9:25 a.m.