Thanks Tom!
However that is not what I need to do. I need to do (note the extra 0’s in f):
f=torch.tensor([[-1.,0],[1,0]])
r=torch.tensor([[11.,21],[21,22]])
f.matmul( r )
Which would be equivalent to:
f=torch.tensor([[-1.],[1]])
r=torch.tensor([[11.,21],[21,22]])
r.matmul(f.t()).t()
However, this also will not work:
RuntimeError: size mismatch, m1: [2 x 2], m2: [1 x 2]
It seems I really need to fill up with 0’s.
Alberto