Commit 2021-09-27 17:49 9175158f
View on Github →refactor(analysis/convex/function): generalize lemmas about convexity/concavity of functions, prove concave Jensen (#9356)
convex_on
and concave_on
are currently only defined for real vector spaces. This generalizes ℝ to an arbitrary ordered_semiring
. As a result, we now have the concave Jensen inequality for free.