SyTen

◆ merge()

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,
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.

Remarks
This function is autodifferentiable but then requires explicit construction of the full merging tensor.

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 syten::Pyten::init_stensor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: