On Page 75 of Boyd's Convex Optimization:
A function can have all its sublevel sets convex but not be a convex function. For example,$ f(x)=-e^x$ is not convex on $R$ but all its sublevel sets are convex.
I don not quite understand that. How to tell the sublevel of $ f(x)=-e^x$ are convex? I think they are all concave as the $f(x)$ itself.