此博文整理一些备用数学公式,会一直更新:
1.Linear Algebra
Linear Algebra Review and Reference
1.1 有关trace的公式
对于一个矩阵$A\in R^{n\times n}$,定义矩阵A的trace为:
$$trace\left(A\right)=\sum_{i=1}{n}A_{ii}$$
- $trace\left(A\right)=trace\left(A^{T}\right)$
- For $x\in R^{n}$, $x^{T}Ax=trace\left(Axx^{T}\right)$
- For $B\in R^{n\times n}$$trace\left(AB\right) = trace\left(BA\right)$,proof is in the pdf file.