def lt_log_determinant(L):
    """
    Log-determinant of a triangular matrix

    Args:
        L (Variable): Lower-triangular matrix to take log-determinant of.
    """
    return L.diag().log().sum()