|
inline |
Takes a Tensor with rang irank
and merges the legs with indices merge_at
and merge_at+1
into a leg with index merge_at
.
All indices greater than merge_at-1
will be shifted by -1.
[in] | itensor | Tensor of rank irank |
[out] | bases | merge configuration |
[in] | merge_at | first index to be merged |
[in] | switch_bases | whether to switch order of bases |
References syten::Basis::dir, syten::MPS::TEBD::MergeConfig::first(), syten::Basis::flipped(), syten::genFuse(), syten::genSplit(), syten::Tensor< rank >::getBasis(), syten::Inc, syten::MPS::TEBD::MergeConfig::second(), syten::MPS::TEBD::MergeConfig::switch_bases, and SYTEN_ASSERT_DEBUG.
Referenced by build_local_T().