BiS*_*raz 10 python numpy python-3.x
我已经使用 matmul 编写了代码,但出现以下错误:
"ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 1 is different from 3)"
Run Code Online (Sandbox Code Playgroud)
代码:
R = [[0.40348195], [0.38658295], [0.82931052]]
V = [0.33452744, 0.33823673, 0.32723583]
print("Rt_p: ", R)
B = np.matmul(V,np.transpose(R))/pow(LA.norm(R), 2)
print("B", B)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
64223 次 |
| 最近记录: |