SyTen

◆ rearrange()

template<typename IndexType , Rank irank>
Tensor<irank> syten::MPS::TEBD::rearrange ( Tensor< irank > const &  itensor,
std::array< IndexType, irank > const &  indices 
)
inline

Simply change the indicces (labels) of the legs.

Example: {3,2,1} switches the labels 1 and 3 between the respective legs.

Parameters
[in]itensorTensor of rank \( irank \)
[in]indicesvetor of new indices in form of a product specifier
Returns
new, rearranged tensor

References syten::genIONode(), and syten::Tensor< rank >::getBasis().

+ Here is the call graph for this function: