std::tuple< STensor, SBasis > syten::STensorImpl::zero_expand_sam | ( | STensor | a, |
SBasis const & | inner, | ||
SBasis const & | zero | ||
) |
Constructs a zero-expanded tensor, expanding the leg inner
by sectors as described in zero
.
References syten::STensorImpl::SBasis::add(), syten::STensorImpl::STensor::autodiff_enabled(), syten::STensorImpl::STensor::b(), syten::STensorImpl::SBasis::dir(), syten::STensorImpl::SBasis::hasSymmetry(), syten::STensorImpl::STensor::rank(), SYTEN_ASSERT_MSG, and zero_expand().