dot: Dot Product

Description

Computes the dot product of two vectors.

Usage

1
dot(a, b)

Arguments

a,b

Two vectors of equal length.

Details

Vectors can be of any length provided they are equal.

Value

A vector of length 1.

Author(s)

Adrian Baddeley and Tom Lawrence

See Also

cross

Examples

1
  dot(c(2,1),c(-3,4))

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.