  We study thermal Casimir and quantum non-retarded Lifshitz interactionsbetween dielectrics in general geometries. We map the calculation of theclassical partition function onto a determinant which we discretize andevaluate with the help of Cholesky factorization. The quantum partitionfunction is treated by path integral quantization of a set of interactingdipoles and reduces to a product of determinants. We compare the approximationsof pairwise additivity and proximity force with our numerical methods. Wepropose a ``factorization approximation'' which gives rather good numericalresults in the geometries that we study.
We map the calculation of the classical partition function onto a determinant which we discretize and evaluate with the help of Cholesky factorization. The quantum partition function is treated by path integral quantization of a set of interacting dipoles and reduces to a product of determinants.