@epow |

Elements raised to a power in a matrix

Syntax: @epow(m, n)

m: matrix, vector

n: matrix, vector, number

Return: matrix, vector

Returns a matrix where every element is equal to the corresponding element in m1 raised to the power given by o.

• If n is a number, each element of m will be raised to the power given by n.

• If n is not a number, the each element of m will be raised to the power of the corresponding element of n.

Examples

matrix m2 = @epow(m1, 3)

Cross-references