A general basis set algorithm for galactic haloes and discs E. J. Lilley and G. van de Ven A&A, 672 (2023) A91 Published online: 06 April 2023 DOI: 10.1051/0004-6361/202245730