Divergence Function, Duality, and Convex Analysis | Synapse