vt::maximum#

template<typename T, size_t N>
Tensor<T, N> vt::maximum(const T value, const Tensor<T, N> &rhs)#

Element-wise maximum of a scalar value and a tensor.

Template Parameters:
  • T – Data type of the tensor.

  • N – Number of dimensions of the tensor.

Parameters:
  • value – The scalar value.

  • rhs – The tensor object.

Returns:

Tensor<T, N>: The result tensor.

template<typename T, size_t N>
Tensor<T, N> vt::maximum(const Tensor<T, N> &lhs, const T value)#

Element-wise maximum of a tensor and a scalar value.

Template Parameters:
  • T – Data type of the tensor.

  • N – Number of dimensions of the tensor.

Parameters:
  • lhs – The tensor object.

  • value – The scalar value.

Returns:

Tensor<T, N>: The result tensor.

template<typename T, size_t N>
Tensor<T, N> vt::maximum(const Tensor<T, N> &lhs, const Tensor<T, N> &rhs)#

Element-wise maximum of two tensors.

Template Parameters:
  • T – Data type of the tensor.

  • N – Number of dimensions of the tensor.

Parameters:
  • lhs – The first tensor object.

  • rhs – The second tensor object.

Returns:

Tensor<T, N>: The result tensor.