ndmult(B,C,d)

版本 1.0.0.0 (1.7 KB) 作者: ja
Multiply many small matricies quickly
17.0 次下载
更新时间 2017/7/21

查看许可证

Intended use is for a large array of small matrices that need to be multiplied together. For example, having 1000 4x3 matrices and 1000 3x7 matrices you may want to create the resulting 1000 4x7 matrices from multiplying them. The 'brute force' method for this is to create a for loop from 1 to 1000 and multiply each one individually. With this function, instead, the for loop is over the dimensions of the matrices. I.E. in this case a nested for loop of 1 to 4 and of 1 to 7, totaling 28 iterations instead of 1000.

引用格式

ja (2024). ndmult(B,C,d) (https://www.mathworks.com/matlabcentral/fileexchange/63826-ndmult-b-c-d), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Linear Algebra 的更多信息
致谢

启发作品: ndinv(B,d)

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0