Let $F:[0,1]\times [0,1]\to [0,1]$ be the following continuous function.
$$F(x, y)=\sum_{0\leq i, j\leq m}z_{i,j} \max(1-|i-mx|)\max(1-|j-my|)$$
I am trying to calculate
$$\lim\sup_{\epsilon \to 0+} \frac{F(x+\epsilon, y-\epsilon)-F(x, y)}{\epsilon}$$
When $x \in (\frac{i_0}{m}, \frac{i_0+1}{m})$ and $y\in (\frac{j_0}{m}, \frac{j_0+1}{m})$ for some integer $i_0, j_0$, then the function is differentiable at that point, and this just reduces to a directional derivative. However, I'm not sure how to handle when $x=i_0/m$ or $y=j_0/m$. I might be missing something obvious.
Directional derivative is a linear operator and the multipliers $z_{i,j}$ are not essential. Therefore, it is enough to consider (with Mathematica)
and
Addition.