vt::sqrt#

template<typename T, size_t N>
Tensor<T, N> vt::sqrt(const Tensor<T, N> &tensor)#

Returns the square root of the elements of the tensor.

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

  • N – Number of dimensions of the tensor.

Parameters:

tensor – The tensor object.

Returns:

Tensor<T, N>: The result tensor.