I'd like to multiply each element of a 3D matrix with the element of a same-sized matrix at the same position.
In 2D it'd look like:
Is there any clean solution with numpy other than for loops ?
EDIT: This matrix operation is named "Hadamard product"