The E int expression is now turned into the evaluation of the trace of a square-root matrix function: this very problem has been recently tackled by Ubaru, Chen and Saad by means of a stochastic Lanczos (SL) trace estimation. For the sake of generality, the algorithm is discussed for Tr [ f (V)], where f denotes a general analytic function inside a closed interval.