Hi Gues!



 abd:

v1=torch.tensor([1 ,0 ,0 ,0])
v2=torch.tensor([1, 0, 0, 0])
The resultat will be v3=v1xv2=[[1 0 ,0 ,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]] ,v3 de size(4x4).


You are asking for the outer product of two vectors.  pytorch has this
function under the name ger().  So try:
torch.ger (v1, v2)

Best.
K. Frank