I have two vector valued functions defined as below
$$g=[g_1, g_2] $$
and $$f=[f_1, f_2]$$
. How can I perform component wise multiplication to get
$$$gf = [g_1f_1, g_2f_2]$$$
I have two vector valued functions defined as below
$$g=[g_1, g_2] $$
and $$f=[f_1, f_2]$$
. How can I perform component wise multiplication to get
$$$gf = [g_1f_1, g_2f_2]$$$
You’d better give more context and a minimal example, see Read before posting: How do I get my question answered?.
For instance, if all you needed was to use the component wise multiplication in a ufl form, then something like ufl.as_vector((f[0] * g[0], f[1] * g[1]))
would be enough.