SyTen

◆ CudaDenseTensor() [1/7]

template<Rank rank, typename Scalar = SDef>
syten::CudaDenseTensorImpl::CudaDenseTensor< rank, Scalar >::CudaDenseTensor ( Coord  dims_,
int  device_hint = -1 
)
inline

Creates an uninitialised dense tensor of the specified dimensions on the specified device or the first available if device_hint is -1.

Parameters
dims_dimensions of each index.
device_hintif not -1, device on which we should allocate the tensor.

References syten::CudaDenseTensorImpl::CudaDenseTensor< rank, Scalar >::data, and syten::CudaDenseTensorImpl::CudaDenseTensor< rank, Scalar >::dims.