Precomputing inverse with unknown diagonal

24 Views Asked by At

Given an invertible matrix $A$. I like to compute the matrix inverse, with diagonal matrix $D$, i.e.,

$$ f(D) = (D - A)^{-1}. $$

Is there a way to precompute something to accelerate the evaluation of function $f$ for any diagonal matrix $D$.