Skip to contents

This function computes the dot product of two input vectors u and v.

Usage

dot(u, v)

Arguments

u

Numeric vector.

v

Numeric vector.

Value

Numeric value representing the dot product of u and v.

Examples

dot(c(1,2,3), c(4,5,6))
#> [1] 32