- “del Z(z)” is defined as “T_z * Z(z)” in the paper attached. Hence, “gradt” variable should be defined as follows.
- Also, another thing which I understood is that these equations involve matrix multiplications rather than dot product. Please verify the code with the paper attached to confirm if the equations really involve dot products or matrix multiplications.
- I can see that the “kron” function is used to model the equation in screenshot attached. I doubt if they should be replaced with matrix multiplications.
- We can remove the “for loop” in line 5 and replace it with code given below.