SyTen

◆ prodD() [1/3]

template<Rank summed, Rank frank, typename Scalar >
std::enable_if< frank==summed, Scalar >::type syten::prodD ( DenseTensor< frank, Scalar > const &  a,
DenseTensor< frank, Scalar > const &  b,
bool  conjugate = true 
)
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.

+ Here is the call graph for this function: