times

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

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

Return

the product of this value and tensor other.

Parameters

other

tensor to be multiplied.

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

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

Return

the product of this tensor and value.

Parameters

value

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

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

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

Return

the product of this tensor and other.

Parameters

other

tensor to be multiplied.