Quick, short question.
Consider the function
$\mathbf{f}(\mathbf {x}) = c \mathbf {e}_{x_2} * \chi_{\mathbf{x} \in A }( \mathbf{x})$
with $x \in \mathbb{R}^2$, where $c > 0$, $A$ is an area, $\mathbf {e}_{x_2}$ is the unit vector in y-direction and $\chi$ is the characteristic function.
Problem: this function is vector-valued. If it wasn't, I would simply use
f = Expression("condition ? a : b")
but I can't really figure out how to do this vector-valued. Any ideas?