矩阵的 Hadamard 积就是两个同维矩阵的逐元素对应相乘。
例如: A = [ 1 2 3 4 ] , B = [ 5 6 7 8 ] A = \left[\begin{matrix} 1 & 2 \\ 3 & 4 \end{matrix} \right], B = \left[\begin{matrix} 5 & 6 \\ 7 & 8 \end{matrix} \right] A=[1324],B=[5768] 则 A , B A,B A,B 的 Hadamard 积: A ∘ B = [ 1 × 5 2 × 6 3 × 7 4 × 8 ] = [ 5 12 21 32 ] A \circ B = \left[\begin{matrix} 1\times5 & 2\times6 \\ 3\times7 & 4\times8 \end{matrix} \right] = \left[\begin{matrix} 5 & 12 \\ 21 & 32 \end{matrix} \right] A∘B=[1×53×72×64×8]=[5211232]