p = logdet(x)