torch.linalg.slogdet
torch.linalg.slogdet(A, *, out=None)
Computes the sign and natural logarithm of the absolute value of
   the determinant of a square matrix.
For complex "A", it returns the sign and the natural logarithm of
   the modulus of the determinant, that is, a logarithmic polar
   decomposition of the determinant.
The determinant can be recovered as sign * exp(logabsdet). When a
   matrix has a determinant of zero, it returns (0, -inf).
Supports input of float, double, cfloat and cdouble dtypes. Also
   supports batches of matrices, and if "A" is a batch of matrices
   then the output has the same batch dimensions.
See also:
 "torch.linalg.det()" computes the determinant of square matrices.

Parameters:
      A (Tensor) -- tensor of shape (, n, n)* where *** is
      zero or more batch dimensions.
Keyword Arguments:
      out (tuple, optional) -- output tuple of two tensors.
      Ignored if None. Default: None.