|
inline |
Ctor with possibility to request calloc()
-based memory allocation for the contained array.
Pass Init::No to do so, this will be disabled if Scalar is not trivial.
dims_ | dimensions of each index |
do_init_ | initialisation request: Init::Yes uses default ctors in new[] , Init::No uses calloc() if Scalar or ScalarBase<Scalar> is trivial and otherwise also new[] . |
ioffset_ | initial number of "virtual" zeros |
foffset_ | final number of "virtual" zeros |
References syten::OffsetDenseTensorImpl::OffsetDenseTensor< rank, Scalar >::data, syten::OffsetDenseTensorImpl::OffsetDenseTensor< rank, Scalar >::dims, syten::OffsetDenseTensorImpl::OffsetDenseTensor< rank, Scalar >::foffset, and syten::OffsetDenseTensorImpl::OffsetDenseTensor< rank, Scalar >::ioffset.