Computes scalar products of datasets of vectors or vectorial quantities.
Usage
scalar(x,y)
# S3 method for default
scalar(x,y)
Value
a numerical vector containing the scalar products of the vectors given
by x and y. If both x and y contain more than one
vector the function uses parallel operation like it would happen with
an ordinary product of vectors.
Arguments
x
a vector or a matrix with rows considered as vectors
y
a vector or a matrix with rows considered as vectors