Vectorized 2-dimensional multiplication of multidimensional matrices

This submission uses a vectorized matrix multiplication to multiply n-dimensional matrices

45 Downloads

Updated 11 Oct 2015

View License

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 (2023). 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
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0