div

abstract operator fun T.div(other: Tensor<T>): Tensor<T>

Each element of the tensor other is divided by this value. The resulting tensor is returned.

Return

the division of this value by the tensor other.

Parameters

other

tensor to divide by.

abstract operator fun Tensor<T>.div(value: T): Tensor<T>

Divide by the scalar value each element of this tensor returns a new resulting tensor.

Return

the division of this tensor by the value.

Parameters

value

the number to divide by each element of this tensor.

abstract operator fun Tensor<T>.div(other: Tensor<T>): Tensor<T>

Each element of the tensor other is divided by each element of this tensor. The resulting tensor is returned.

Return

the division of this tensor by other.

Parameters

other

tensor to be divided by.