minus

abstract operator override fun T.minus(arg: StructureND<T>): Tensor<T>(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.


abstract operator override fun StructureND<T>.minus(arg: T): Tensor<T>(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.


abstract operator override fun StructureND<T>.minus(arg: StructureND<T>): Tensor<T>(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.