English

Fast automatically differentiable matrix functions and applications in molecular simulations

Computational Physics 2025-01-06 v3

Abstract

We describe efficient differentiation methods for computing Jacobians and gradients of a large class of matrix functions including the matrix logarithm log(A)\log(A) and pp-th roots A1pA^{\frac{1}{p}}. We exploit contour integrals and conformal maps as described by (Hale et al., SIAM J. Numer. Anal. 2008) for evaluation and differentiation and analyze the computational complexity as well as numerical accuracy compared to high accuracy finite difference methods. As a demonstrator application we compute properties of structural defects in silicon crystals at positive temperatures, requiring efficient and accurate gradients of matrix trace-logarithms.

Keywords

Cite

@article{arxiv.2412.12598,
  title  = {Fast automatically differentiable matrix functions and applications in molecular simulations},
  author = {Tina Torabi and Timon S Gutleb and Christoph Ortner},
  journal= {arXiv preprint arXiv:2412.12598},
  year   = {2025}
}
R2 v1 2026-06-28T20:38:21.033Z