Numerator Layout
- Some texts use to represent .
Gradient
Suppose and s.t. . Then the gradient is defined as follows.
Also we can define the Hessian as follows.
Because of the Clairaut’s theorem, usually we use the following form.
Jacobian Matrix
Suppose and s.t. . Then the Jacobian matrix is defined as follows.
Chain Rule
For any possible combination of shapes for , the following chain rule holds.
References
(1) Wikipedia, Matrix Calculus (https://en.wikipedia.org/wiki/Matrix_calculus)
(2) Wikipedia, Jacobian matrix and determinant (https://en.wikipedia.org/wiki/Jacobian_matrix_and_determinant)