minus

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

Each element of the tensor other is subtracted from this value. The resulting tensor is returned.

Return

the difference between this value and tensor other.

Parameters

other

tensor to be subtracted.

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

Subtracts the scalar value from each element of this tensor and returns a new resulting tensor.

Return

the difference between this tensor and value.

Parameters

value

the number to be subtracted from each element of this tensor.

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

Each element of the tensor other is subtracted from each element of this tensor. The resulting tensor is returned.

Return

the difference between this tensor and other.

Parameters

other

tensor to be subtracted.