矩阵跟向量的乘法怎么计算? 比如说:(0.5,0.3,0.2)* { 0.2 0.7 0.1 0 0 0.4 0.5 0.1 0.2 0.3 0.4 0.1}

问题描述:

矩阵跟向量的乘法怎么计算? 比如说:(0.5,0.3,0.2)* { 0.2 0.7 0.1 0 0 0.4 0.5 0.1 0.2 0.3 0.4 0.1}

这道题的算法为(0.5×0.2+0.3×0+0.2×0.2,0.5×0.7+0.3×0.4+0.2×0.3,0.5×0.1+0.3×0.5+0.2×0.4,0.5×0+0.3×0.1+0.2×0.1)=(0.14,0.53,0.28,0.05)