Given the
matrix of which an eigenvalue is desired, the
latest guess for the eigenvalue
rho, and a right hand side
v,
the solution
y needs to be calculated in a fast way. This part of the
code is time-critical as it is called at each iteration. To solve above
equation, a function object
solver needs to be passed, which is called
as
solver(matrix,rho,v,y)
The matrix stays the same throughout the
iteration and is the same as passed to
inverse. This can (and should)
be used by the solver to optimize the calculation.
If
(matrix -
rho * I) is singular an exception should be thrown which will
terminate the iterations.