SyTen

◆ OffsetDenseTensor() [3/5]

template<Rank rank, typename Scalar = SDef>
syten::OffsetDenseTensorImpl::OffsetDenseTensor< rank, Scalar >::OffsetDenseTensor ( Coord  dims_,
Size  ioffset_,
Size  foffset_,
DynArray< Scalar > &&  data_ 
)
inline

Ctor stealing a DynArray from another place.

Parameters
dims_dimensions of each index
ioffset_initial number of "virtual" zeros
foffset_final number of "virtual" zeros
data_DynArray to be moved from.

References syten::OffsetDenseTensorImpl::OffsetDenseTensor< rank, Scalar >::data, syten::OffsetDenseTensorImpl::OffsetDenseTensor< rank, Scalar >::dims, syten::OffsetDenseTensorImpl::OffsetDenseTensor< rank, Scalar >::foffset, syten::OffsetDenseTensorImpl::OffsetDenseTensor< rank, Scalar >::ioffset, syten::DynArray< Type >::size(), and SYTEN_ASSERT_MSG.

+ Here is the call graph for this function: