| SparseTensor< rank, Scalar > syten::multi_transpose | ( | SparseTensor< rank, Scalar > const & | in, |
| ConstSpan< Index > const | perm, | ||
| bool | conjugate = false |
||
| ) |
Transposes the sparse tensor according to the permutation perm.
perm[i] = j means that the new leg i+1 is the old leg j. If conjugate is true, the entries are complex-conjugated.
References conj(), syten::SparseTensor< rank, Scalar >::dim(), syten::SparseTensor< rank, Scalar >::insert(), syten::SparseTensor< rank, Scalar >::isSingleton(), rank(), and syten::SparseTensor< rank, Scalar >::valSingleton().
Here is the call graph for this function: