in mathematics — specifically, in riemannian geometry — geodesic convexity is a natural generalization of convexity for sets and functions to riemannian manifolds. it is common to drop the prefix "geodesic" and refer simply to "convexity" of a set or function.