times

open operator override fun Double.times(arg: StructureND<Double>): DoubleTensor(source)

Each element of the tensor arg is multiplied by this value. The resulting tensor is returned.

Return

the product of this value and tensor arg.

Parameters

arg

tensor to be multiplied.


open operator override fun StructureND<Double>.times(arg: Double): DoubleTensor(source)

Multiplies the scalar arg by each element of this tensor and returns a new resulting tensor.

Return

the product of this tensor and arg.

Parameters

arg

the number to be multiplied by each element of this tensor.


open operator override fun StructureND<Double>.times(arg: StructureND<Double>): DoubleTensor(source)

Each element of the tensor arg is multiplied by each element of this tensor. The resulting tensor is returned.

Return

the product of this tensor and arg.

Parameters

arg

tensor to be multiplied.