import torch


def compute_cov_determinant(cov: torch.Tensor) -> float:
    """
    Computes the determinant of the covariance matrix (also known as generalized variance)
    :param cov: the covariannce matrix as torch tensor
    :return: the determinant
    """
    return cov.det().unsqueeze(dim=0).cpu().numpy()[0]