Accurate solution of the Helmholtz equation by Lanczos orthogonalization for media with loss or gain

Abstract
The numerical scheme for solving the Helmholtz equation, based on the Lanczos orthogonalization scheme, is generalized so that it can be applied to media with space-dependent absorption or gain profiles.