plus

abstract operator override fun T.plus(arg: StructureND<T>): Tensor<T>(source)

Each element of the tensor arg is added to this value. The resulting tensor is returned.

Return

the sum of this value and tensor arg.

Parameters

arg

tensor to be added.


abstract operator override fun StructureND<T>.plus(arg: T): Tensor<T>(source)

Adds the scalar arg to each element of this tensor and returns a new resulting tensor.

Return

the sum of this tensor and arg.

Parameters

arg

the number to be added to each element of this tensor.


abstract operator override fun StructureND<T>.plus(arg: StructureND<T>): Tensor<T>(source)

Each element of the tensor arg is added to each element of this tensor. The resulting tensor is returned.

Return

the sum of this tensor and arg.

Parameters

arg

tensor to be added.