This function calculates the outer product of a vector with itself.
vec.outer(x)
x
a numeric vector.
Returns the outer product of the vector x with itself.