dot {globe}R Documentation

Dot Product

Description

Computes the dot product of two vectors.

Usage

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

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

[Package globe version 1.2-0 Index]