api / koma / epow

epow

fun epow(arr:Matrix<Double>, num:Double):Matrix<Double>

Returns a matrix consisting of each element in the input matrix raised to the given power.

Parameters

arr - An arbitrarily sized matrix

num - the power to raise the matrix to.

Return A matrix consisting of the operation performed element-wise.