SMS: Matrices, moments, and quadrature with applications