The OUTERPROD command

 

OUTERPROD creates a matrix by calculating the outer product of two vectors. The result is a matrix with as many rows as the first input series and as many columns as the second.