1: \begin{abstract}
2: Evaluating the action of a matrix function on a vector, that is $x=f(\mathcal M)v$, is an ubiquitous task in applications. When $\mathcal M$ is large, one usually relies on
3: Krylov projection methods. In this paper, we
4: provide effective choices for the poles of the rational Krylov method for approximating $x$ when $f(z)$ is either Cauchy-Stieltjes or Laplace-Stieltjes
5: (or, which is equivalent, completely monotonic) and $\mathcal M$ is a positive definite
6: matrix.
7:
8: Relying on the same tools used to analyze the generic situation,
9: we then focus on the case $\mathcal M=I \otimes A - B^T \otimes I$,
10: and $v$
11: obtained vectorizing a low-rank matrix; this finds application, for instance,
12: in solving fractional diffusion equation on two-dimensional
13: tensor grids. We see how to leverage tensorized Krylov subspaces to exploit the Kronecker structure and
14: we introduce an error analysis for the numerical approximation of $x$. Pole selection strategies with explicit convergence bounds are given also in this case.
15: \end{abstract}