vt::power#
-
template<typename T, size_t N>
Tensor<T, N> vt::power(const T value, const Tensor<T, N> &rhs)# Returns the power of the value and the elements of the tensor.
- Template Parameters:
T – Data type of the tensor.
N – Number of dimensions of the tensor.
- Parameters:
value – The value.
rhs – The tensor object.
- Returns:
Tensor<T, N>: The result tensor.
-
template<typename T, size_t N>
Tensor<T, N> vt::power(const Tensor<T, N> &lhs, const T value)# Returns the power of the elements of the tensor and a value.
- Template Parameters:
T – Data type of the tensor.
N – Number of dimensions of the tensor.
- Parameters:
lhs – The tensor object.
value – The value.
- Returns:
Tensor<T, N>: The result tensor.
-
template<typename T, size_t N>
Tensor<T, N> vt::power(const Tensor<T, N> &lhs, const Tensor<T, N> &rhs)# Returns the power of the elements of the 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.