PyTorch for example is often called a deep learning framework. But at its core it is a hardware accelerated linear algebra and tensors library with the support of auto differentiation.
So it is well suited for implementing numeric algorithms, classic machine learning algorithms and differentiable programs.
DL is really a subset of differentiable programs, but it happens to be a very interesting one.