This is a variation of MATLAB's polyvalm function, with a more efficient implementation. For a polynomial of order p, the number of matrix multiplies is approximately 2*(sqrt(p+1)-1).
[See also polyvalm2, File ID: #25780.]
Kenneth Johnson (2023). Matrix polynomial (https://www.mathworks.com/matlabcentral/fileexchange/45786-matrix-polynomial), 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!