We describe a library to compute various types of Green's tensor for three-dimensional electromagnetic scattering calculations. This library includes the retarded and non-retarded (quasi-static) Green's tensors for infinite homogeneous space and the non-retarded Green's tensor associated with a surface. Both standard and filtered Green's tensor can be computed. Filtered Green's tensor can be used to accurately investigate high permittivity scatterers with the coupled-dipole approximation. (C) 2002 Elsevier Science B.V. All rights reserved.