- 标量(Scalar):x
- 向量(Vector):x
- 矩阵(Matrix):X
- Numerator Layout:分子布局,分子不变,分母转置
- Denominator Layout:分母布局,分母不变,分子转置
向量对标量求导
∂x∂y=∂x∂y1∂x∂y2⋮∂x∂ym
标量对向量求导
∂x∂y=[∂x1∂y∂x2∂y⋯∂xn∂y]
向量对向量求导
The vector-by-vector derivative is the Jacobian matrix of y with respect to x.
∂x∂y=∂x1∂y1∂x1∂y2⋮∂x1∂ym∂x2∂y1∂x2∂y2⋮∂x2∂ym⋯⋯⋱⋯∂xn∂y1∂xn∂y2⋮∂xn∂ym
where
y=y1y2⋮ym,x=x1x2⋮xn
The bold symbols for vectors and matrices are not necessary, but they are used here for clarity.
矩阵对标量求导
∂x∂Y=∂x∂y11∂x∂y21⋮∂x∂ym1∂x∂y12∂x∂y22⋮∂x∂ym2⋯⋯⋱⋯∂x∂y1n∂x∂y2n⋮∂x∂ymn
标量对矩阵求导
∂X∂y=∂x11∂y∂x21∂y⋮∂xm1∂y∂x12∂y∂x22∂y⋮∂xm2∂y⋯⋯⋱⋯∂x1n∂y∂x2n∂y⋮∂xmn∂y