plus

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

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

Return

the sum of this value and tensor other.

Parameters

other

tensor to be added.

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

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

Return

the sum of this tensor and value.

Parameters

value

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

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

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

Return

the sum of this tensor and other.

Parameters

other

tensor to be added.