minus

open operator override fun Int.minus(arg: StructureND<Int>): IntTensor(source)

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

Return

the difference between this value and tensor arg.

Parameters

arg

tensor to be subtracted.


open operator override fun StructureND<Int>.minus(arg: Int): IntTensor(source)

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

Return

the difference between this tensor and arg.

Parameters

arg

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


open operator override fun StructureND<Int>.minus(arg: StructureND<Int>): IntTensor(source)

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

Return

the difference between this tensor and arg.

Parameters

arg

tensor to be subtracted.