Scattering of a Gaussian beam by an infinite cylinder in the framework of generalized Lorenz–Mie theory: Formulation and numerical results