|
inline |
Scalar product of two dense tensors.
By default, the values of the second tensor are complex-conjugated. Legs of the tensors have to be in the same order, i.e. the n-th leg of the first tensor is contracted with the n-th leg of the second tensor. Equivalent to reshaping both tensors into vectors and taking the Euclidean scalar product of those.
References dot(), syten::DenseTensor< rank, Scalar >::get_data(), syten::DenseTensor< rank, Scalar >::getDims(), and SYTEN_ASSERT_MSG.