Template Function gamer::dot¶
Defined in File tensor.h
Function Documentation¶
-
template<typename ElemType, std::size_t D, std::size_t N>
ElemType gamer::dot(const tensor<ElemType, D, N> &A, const tensor<ElemType, D, N> &B)¶ Inner product.
- Parameters
A – [in] First tensor
B – [in] Second tensor
- Template Parameters
ElemType – Typename of elements
D – Vector dimension
N – Rank of first tensor
- Returns
Tensor inner product