| SRDef syten::MPS::State::truncate | ( | Truncation const & | trunc = Truncation(), |
| State::DropNorm const | dropN = DropNorm::Yes, |
||
| bool const | sweep_left = true |
||
| ) |
Truncates the state.
First drops all unmatched blocks, then left-normalises the state without truncation and finally right-normalises with the given truncation.
| trunc | Truncation specification |
| dropN | If true, drop the norm on both normalisation sweeps. |
| sweep_left | Whether the truncation sweep is left. Resulting state is rightnormed(true) or leftnormed(false). |
References dropUnmatched(), leftnorm(), and rightnorm().
Referenced by syten::MPS::RandomState::generateCompleteState(), syten::MPS::RandomState::generateSampledState(), syten::Pyten::init_mps(), and truncateKeepNorm().
Here is the call graph for this function:
Here is the caller graph for this function: