If $A^{-1}$ has been precomputed (or to be more precise: the Cholesky decomposition of A has been precomputed and cached), is there an efficient way to compute either $$C = (A+λI)^{-1}$$ or (more valuably)
the Cholesky Decomposition of: $$(A+λI)$$
A few other (possibly unhelpful/unecessary) notes:
- A is a square matrix that was constructed by doing this: $B^TB$, where B was some dense, non-square matrix of typically around 30 rows by 20 columns.
- Although A is small (eg 20 by 20), I have ~100 different A matrixes and ~$10^7$ different λ. So, precomputing 100 $A^{-1}$ (or its Cholesky decomposition) takes very little time; but having to compute the inverse of $10^7$ different $(A+λI)$ can take time, unless there's a clever way of taking advatange of the fact that $A^{-1}$ has been precomputed, and we're only adding a scaled version of the Identity matrix....
- I have already reviewed Inverse of the sum of matrices but no one seemed to have answered the question/comment by Royi, which I'm guessing was asked for the same reason I'm asking this question above.
- Ultimately, I will use the Cholesky decomposition of $(A+λI)$ to solve a linear equation, eg find $x$ in: $Cx = y$, where $C = (A+λI)$ and $y$ is known.
O(n^3)
. If you can compute each inverse matrix in optimal timeO(n^2)
then you get a improvement factor of 20, divide by constant factors. Not sure if it worth the effort. /Only single-threaded solutions are useful in our case.
- Irrelevant for mathematics, only relevant in computer algorithm. Is this the wrong stackexchange? Should this question be on computer science instead? – user202729 Dec 06 '17 at 14:51