Matrix multiplication with transposed matrix

what is the best way to multiply a transposed matrix D^T with matrix D in pytorch?

@John_Price
Use any one of the methods given below:

  • D @ D.t()

  • torch.matmul(D,D.t())

  • torch.mm(D,D.t())

1 Like