This function will perform matrix multiplication (mtimes) for two arguments of size AxMx... and MxBx... for output size AxBx... along further dimensions. In addition to the simple loop, it already provides for transposing either (or both) of the arguments, e.g. to compute M' * M covariance matrices along the further dimensions.
Jochen Weber (2022). mtimesnd (https://www.mathworks.com/matlabcentral/fileexchange/54993-mtimesnd), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!