Some important applicative problems require the evaluation of functions of large and sparse and/or localized matrices A. Popular and interesting techniques for computing (A) and (A)v, where v is a vector, are based on partial fraction expansions. However, some of these techniques require solving several linear systems whose matrices differ from A by a complex multiple of the identity matrix I for computing (A)v or require inverting sequences of matrices with the same characteristics for computing (A). Here we study the use and the convergence of a recent technique for generating sequences of incomplete factorizations of matrices in order to face with both these issues. The solution of the sequences of linear systems and approximate matrix i...