SyTen

◆ addScaled() [2/4]

template<Rank rank, typename Scalar >
void syten::CudaDenseTensorImpl::addScaled ( CudaDenseTensor< rank, Scalar > &  a,
DenseTensor< rank, Scalar > const &  b,
typename IdentityType< Scalar >::type const  factor,
EliminateZeros const  ezeros 
)
inline

Adds the entries of the host-based dense tensor b scaled by factor to the CUDA dense tensor a.

Remarks
Zero elimination is currently not supported. If requested, a warning will be shown once.
a will first be transformed into a CudaDenseTensor.

References addScaled(), and syten::CudaDenseTensorImpl::CudaDenseTensor< rank, Scalar >::get_device().

+ Here is the call graph for this function: