Driver zndrv2 uses the shift-invert mode to find eigenvalues closest to a real shift This is often used to compute interior eigenvalues. For a discussion of shift-invert mode, see 3.2 in Chapter 3. To use zndrv2, the user is required to supply the action of
This is typically accomplished by factoring the matrix once before the iteration begins and then using this factorization repeatedly to solve the sequence of linear systems that arise during the calculation. The IRAM will find selected eigenvalues of depending on the setting of which. The recommended setting for computing the eigenvalues of A nearest to is which = 'LM'.