Derivative of the Frobenius norm of a matrix involving the Hadamard product

183 Views Asked by At

I want to take a derivative with respect to $A_{n}$ and $B_{n}$ but I have a problem.

The function is

$$f=\left\|\left(B_{1}^TA_{1}\right)\circ\left(B_{2}^TA_{2}\right)\circ\dotsb\circ\left(B_{N}^TA_{N}\right)\right\|_{F}^2$$ Where $\circ$ is Hadamrad product and $B_{1}^TA_{1}$ is a normal matrix multiplication. Thank you.