pow method

Tensor<T> pow(
  1. Tensor<T> right
)

Calculates element-wise power.

The formula for result element i is:

pow(elements[i], right.elements[i]);

Throws ArgumentError if tensor shapes are not equal.

Implementation

Tensor<T> pow(Tensor<T> right) {
  final builder = toBuilder();
  builder.pow(right);
  return builder.build();
}