InnovArul:

a = Variable(torch.Tensor([[2,0],[0,4]])) torch.diag(a).prod()


In the toy example that will work, but it won’t generalize to compute the determinate of any postivie definite matrix, right? Only using the cholesky decomposition as written before (adding the square) would generalize…