SyTen

◆ get_device()

template<Rank rank, typename Scalar = SDef>
int syten::CudaDenseTensorImpl::CudaDenseTensor< rank, Scalar >::get_device ( ) const
inline

Returns the device hosting data or -1 if either no device is used or data is the nullptr.

References syten::CudaDenseTensorImpl::CudaDenseTensor< rank, Scalar >::data, and syten::Cuda::host_device().

Referenced by syten::CudaDenseTensorImpl::addScaled(), syten::CudaDenseTensorImpl::conj(), syten::CudaDenseTensorImpl::gemm_transpose(), syten::CudaDenseTensorImpl::isZero(), and syten::CudaDenseTensorImpl::prodD().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: