vt::minimum#
-
template<typename T, size_t N>
Tensor<T, N> vt::minimum(const T value, const Tensor<T, N> &rhs)# Element-wise minimum 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::minimum(const Tensor<T, N> &lhs, const T value)# Element-wise minimum 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::minimum(const Tensor<T, N> &lhs, const Tensor<T, N> &rhs)# Element-wise minimum 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.