Numpy multiply 3d matrix by 2d matrix

前端 未结 2 1284
忘掉有多难
忘掉有多难 2021-01-13 12:20

For example, I got matrix A of shape (3,2,2), e.g.

[
[[1,1],[1,1]], 
[[2,2],[2,2]], 
[[3,3],[3,3]]
]

and matrix B of shape (2,2), e.g.

2条回答
提交回复
热议问题