InnerProduct {UStatBookABSC} | R Documentation |
Computes the Euclidean inner product
InnerProduct(a, b, na.rm)
a |
a numeric vector |
b |
another numeric vector |
na.rm |
logical |
a real number
x <- c(1, 2, 3)
y <- c(3, 0, 1)
InnerProduct(x, y)