plusAssign

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

Adds the scalar value to each element of this tensor.

Parameters

value

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

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

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

Parameters

other

tensor to be added.