$f(\lambda x + (1-\lambda y) \leq \lambda f(x) + (1- \lambda) f(y)$. This is the definition of convexity I am used to. If $f$ is a convex function, then $f : \mathbb{R} \rightarrow \mathbb{R}$.
What if I am doing something like $f : \mathbb{R}^2 \rightarrow \mathbb{R}$? Is the definition of convexity different or is it still the same?
So instead of $f(x)$ I had $f(x,y)$. If the definition is different what would it look like then?