%^% | R Documentation |
Raises a matrix x
to the y
-th power. x ^ y
computes
element wise powers, whereas this computes y - 1 matrix multiplications.
mat_power(x, y)
is identical to x %^% y
.
x %^% y mat_power(x, y)
x |
A numeric or integer matrix. |
y |
An integer. |
A matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.