div abstract method

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

Calculates fraction of two tensors.

Element i is calculated with the formula:

x[i] = x[i] / right[i];

If swapArguments is true, the arguments will be swapped.

Throws ArgumentError if tensor shapes is non-equal.

Implementation

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