I have a ($1 \times n$) row vector $\boldsymbol{x}$, an ($n \times n$) matrix $\mathbf{F}$, and an ($n \times n \times n$) tensor $\mathbf{Q}$. I also have a system of equations that reads
$\dot{x}_{i} = \sum\limits_{j=1}^{n}\sum\limits_{k=1}^{n} x_{j} x_{k} f_{jk} q_{jki}$,
where the $x$, $f$, and $q$'s correspond to elements of $\boldsymbol{x}$, $\mathbf{F}$, and $\mathbf{Q}$, respectively.
I would like to write the system of equations as a ($1 \times n$) row vector $\boldsymbol{\dot{x}}$ in terms of $\boldsymbol{x}$, $\mathbf{F}$, and $\mathbf{Q}$ given above, but I can't for the life of me figure out how.
Edit 1:
Ok, if I take $\mathbf{X} = \mathrm{diag}(\boldsymbol{x})$, then the sum over the $x_{j} x_{k}$ part can be described by $\mathbf{X}(\mathbf{X} + \mathbf{J}\mathbf{X}\mathbf{J})$, where $\mathbf{J}$ is the counter-identity matrix. Not sure if that is progress or not?