Skip to contents

Compute the dot product between two vectors

Usage

dot(vec1, vec2)

Arguments

vec1

A numeric vector

vec2

Another numeric vector

Value

A numeric

Examples

dot(c(0,1), c(1,0))
#> [1] 0