times

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

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.


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

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.


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

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.