mpower2 - A faster matrix power function.

mpower2 evaluates matrix to an integer power faster than the MATLAB built-in function mpower.

Download
Download

You are now following this Submission

Cite As

James Tursa (2026). mpower2 - A faster matrix power function. (https://se.mathworks.com/matlabcentral/fileexchange/25782-mpower2-a-faster-matrix-power-function), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: matrix power

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Modified the code so that sparse matrix inputs will always result in a sparse matrix answer. Also added a few more special cases that are more efficient than the binary decomposition method.

Download
1.0.0

Download