I am groking the following equation:
$$ \frac{\delta{\mathbf{h}_i}}{\delta{\mathbf{h}_{i-1}}} = \prod_{i = k + 1}^{t}\mathbf{\Theta}^T \text{diag}[\mathbf{\phi'}(\mathbf{h}_{i-1})] $$
Where $\frac{\delta{\mathbf{h}_i}}{\delta{\mathbf{h}_{i-1}}} $ is a 2 x 2 jacobian matrix, $\mathbf{\Theta}^T$ is a 2 x 2 matrix, and $\text{diag}[\mathbf{\phi'}(\mathbf{h}_{i-1})]$ is also a 2 x 2 matrix.
My question is, in what order should this multiplication be executed? I know that matrix multiplication is not commutative in general, and so I am stumped as to what "order" I am supposed to perform the above matrix products in. Does the equation dictate the order? If not, then how does one know?