矩阵的 Hadamard 积

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/itnerd/article/details/86299480

矩阵的 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 , 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]

猜你喜欢

转载自blog.csdn.net/itnerd/article/details/86299480