SyTen

◆ prodD() [3/3]

template<Rank r, typename Scalar >
Scalar syten::prodD ( DenseTensor< r, Scalar > const &  a,
DenseTensor< r, Scalar > const &  b,
std::array< int, r > const &  c_a,
std::array< int, r > const &  c_b,
bool  conjugate = false 
)
inline

Reordering scalar product of two dense tensors.

By default, the second tensor is not complex-conjugated, in line with the generic interface of prodD.

References syten::DenseProduct::check_dense_dims(), syten::DenseTensor< rank, Scalar >::dims, dot(), syten::DenseTensor< rank, Scalar >::get_data(), syten::DenseTensor< rank, Scalar >::getDims(), syten::DenseProduct::is_trivial_order_a(), syten::DenseProduct::is_trivial_order_b(), and syten::DenseProduct::validateProductSpecifier().

+ Here is the call graph for this function: