pow method Null safety

void pow(
  1. Tensor<T> right,
  2. {bool swapArguments = false}
)

Calculates pow(a,b) for each element.

Element i is calculated with the formula:

x[i] = pow(x[i], right[i]);

If swapArguments is true, base and power arguments will be swapped.

Throws ArgumentError if tensor shapes are not equal.

Implementation

void pow(Tensor<T> right, {bool swapArguments = false});