l
and b
are two lists of vectors with different length. I need the list of vectors that is constructed by adding each member of b
to each member of l
(resulting in a list with length $|l|\times |b|$). This can be done by
t = Join@Flatten[Table[Map[# + b[[i]] &, l], {i, Length[b]}], 1]
Can this be done by mapping something like #1+#2&
to the lists? Thanks!