For batches shaped (b,m,k) and (b,k,n), what does matrix multiplication produce?
MathematicsLevel: FoundationMatrix geometry and computation
For batches shaped (b,m,k) and (b,k,n), what does matrix multiplication produce?
Hints
- The final two axes are matrices.
- Batch axes broadcast.
Answer
A batch (b,m,n), contracting k within each batch pair. It does not sum across b; broadcasting batch axes must be intentional.
Source and licence: NumPy — numerical linear algebra · BSD-3-Clause · answer: Quantoros editorial