  We study the local and global versions of the convexity, which is closely
related to the problem of extending a convex function on a non-convex domain to
a convex function on the convex hull of the domain and beyond the convex hull.
We also give the parallel results for the convexity defined by positive
definite Hessian.
