log det calculation in ELBO optimized