Imagine I have a vector A as
\begin{bmatrix}1&2&0&7\end{bmatrix}
I wanna get the sum of every two elements in the vector as a matrix
\begin{bmatrix}2&3&1&8\\3&4&2&9\\ 1&2&0&7 \\ 8&9&7&14\end{bmatrix}
which is of course symmetric!
Is there any matrix operation by which I can construct the binary-sum matrix?