plus

operator fun DScalar.plus(right: Float): DScalar

The addition of a floating-point number to a DScalar simply updates the primal with the scaled value.


operator fun Float.plus(right: DScalar): DScalar

Because scalar addition is commutative, we can implement this operation in terms of the same operation with the operands swapped.


operator fun DScalar.plus(right: DScalar): DScalar

Scalar (floating-point) addition.


operator fun DTensor.plus(right: DTensor): DTensor

Tensor addition.


operator fun DTensor.plus(right: Float): DTensor
operator fun Float.plus(right: DTensor): DTensor