mmtimes: matrix chain product
Because the matrix multiplication is associative; the product can be carried with different order, leading to the same result up to round-off error, MMTIMES usings "optimal" order of binary product to reduce the computational effort (probably accuracy is also improved)
The function assumes the cost of the product of (m x n) with (n x p) matrices is (m*n*p). This assumption is typically true for full matrix.
Zitieren als
Bruno Luong (2024). mmtimes: matrix chain product (https://www.mathworks.com/matlabcentral/fileexchange/27950-mmtimes-matrix-chain-product), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions > Pseudorandom and Quasirandom Number Generation >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.5.0.0 | Update, optimal order can be input/output according to Ged Ridgway's suggestion |
||
1.3.0.0 | Treat the case of scalar matrices |
||
1.1.0.0 | quicker top-down algorithm |
||
1.0.0.0 |