Vectorized 2-dimensional multiplication of multidimensional matrices
If you dont want to use slow for loops to apply a matrix multiplication between two n-dimensional matices, this submission could be helpful. Unfortunately, singelton expansion is not supported. Thus it is required that boths inputs are the same size.
Input 1: n-by-m-by-... Matrix
Input 2: m-by-p-by-... Matrix.
Output: n-by-p-by-... Matrix.
Cite As
Vincent Wilms (2025). Vectorized 2-dimensional multiplication of multidimensional matrices (https://www.mathworks.com/matlabcentral/fileexchange/53459-vectorized-2-dimensional-multiplication-of-multidimensional-matrices), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Linear Algebra >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |