An Optimization Perspective On Log-Concave Sampling And Beyond