Calculate Regression Deletion Diagnostics for Multivariate...

Calculates the `n`

-th power of a square matrix, where `n`

can be a positive or negative integer or a fractional power.

1 | ```
mpower(A, n)
``` |

`A` |
A square matrix. Must also be symmetric for non-integer powers. |

`n` |
matrix power |

If `n<0`

, the method is applied to *A^{-1}*.
When `n`

is an integer, the function uses the Russian peasant method,
or repeated squaring for efficiency.
Otherwise, it uses the spectral decomposition of `A`

,
requiring a symmetric matrix.

Returns the matrix *A^n*

Michael Friendly

Packages corpcor and expm define similar functions.

1 2 3 4 5 6 7 8 9 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.