Vectorized 2-dimensional multiplication of multidimensional matrices

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

You are now following this Submission

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 (2026). Vectorized 2-dimensional multiplication of multidimensional matrices (https://au.mathworks.com/matlabcentral/fileexchange/53459-vectorized-2-dimensional-multiplication-of-multidimensional-matrices), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Linear Algebra in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0