vt::copy#

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

Copy the tensor.

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

  • N – Number of dimensions of the tensor.

Parameters:

tensor – The tensor object.

Returns:

Tensor: The copied tensor object.