Tensor
[number] dot(tensor)
Performs the dot product between tensor and self. The number of elements must match: both tensors are seen as a 1D vector.
tensor
> x = torch.Tensor(2,2):fill(2) > y = torch.Tensor(4):fill(3) > = x:dot(y) 24