vt::dot#

template<typename T, size_t N>
T vt::dot(Tensor<T, N> tensor1, Tensor<T, N> tensor2)#

Returns the dot product of two tensors.

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

  • N – Number of dimensions of the tensor.

Parameters:
  • tensor1 – The first tensor.

  • tensor2 – The second tensor.

Returns:

T: The dot product of the two tensors.