max abstract method

void max(
  1. Tensor<T> right
)

Calculates element-wise maximum of the two tensors.

Element i is calculated with the formula:

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

Throws ArgumentError if tensor shapes are not equal.

Implementation

void max(Tensor<T> right);