R/dot.R

Defines functions dot

dot = function(a, b) {
  # Returns the dot product of the two vectors a and b
  return (sum(a*b))
}

Try the egg package in your browser

Any scripts or data that you put into this service are public.

egg documentation built on May 2, 2019, 5:55 p.m.