I\'m trying to multiply each element in a vector by itself such that it produces a matrix that is symmetric about the diagonal. For example, given this vector::
Like this:
x %o% x
which is a shortcut for
outer(x, x)
You can also do
tcrossprod(x)