Код: Выделить всё
a=np.arange(8).reshape(2,2,2)
b=np.arange(4).reshape(2,2)
print(np.matmul(a,b))
Код: Выделить всё
[[[ 2 3]
[ 6 11]]
[[10 19]
[14 27]]]
Подробнее здесь: https://stackoverflow.com/questions/531 ... -and-matri
Код: Выделить всё
a=np.arange(8).reshape(2,2,2)
b=np.arange(4).reshape(2,2)
print(np.matmul(a,b))
Код: Выделить всё
[[[ 2 3]
[ 6 11]]
[[10 19]
[14 27]]]