SyTen

◆ prodD() [6/6]

template<Rank r, typename Scalar >
Scalar syten::CudaDenseTensorImpl::prodD ( DenseTensor< r, Scalar > const &  a,
CudaDenseTensor< 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 a standard dense tensor and a CUDA dense tensor.

If either tensor is larger than SYTEN_CUDA_THRESHOLD, the calculation is done on the GPU, otherwise, the calculation is done on the host.

References syten::EnvVars::cuda_size_to_gpu, and syten::DenseTensor< rank, Scalar >::size().

+ Here is the call graph for this function: