std::tuple< STensor, SBasis > syten::STensorImpl::merge | ( | STensor const & | in, |
SBasisId const & | f1, | ||
SBasisId const & | f2, | ||
Index | maxBlocksize = Maximum() , |
||
SRDef | ratio = 1. , |
||
Index | minBlocksize = 1 , |
||
bool | ethereal = true , |
||
SourceLocation const & | loc = SourceLocation::current() |
||
) |
Merges the bases f1
and f2
of tensor in
.
Returns the tensor with merged bases and the resulting merge basis.
References syten::STensorImpl::STensor::b(), syten::STensorImpl::SBasis::dir(), syten::STensorImpl::SBasis::f(), gen_merge(), prod(), SYTEN_ASSERT_MSG, and SYTEN_PRETTY_SLOC.
Referenced by svd().