I have two vectors and I want a matrix which elements are the sum of each element of vector 1 and each element of vector 2.
For example, the first element in the firs
We can also use sapply
sapply
sapply(u, `+`, v)