SRDef syten::BTT::State::truncate | ( | Truncation const & | trunc = Truncation() , |
State::DropNorm const | dropN = DropNorm::Yes |
||
) |
Truncates the state.
See truncate_rec() for a detailed discussion of the algorithm.
trunc | Truncation specification |
dropN | if true, drop the norm on both normalisation sweep |
References drop_unmatched(), syten::isnan(), syten::BinaryTree::Tree< Cached< Tensor< 4 > > >::r, rnorm(), and truncate_rec().
Referenced by syten::BTT::RandomState::generateCompleteState(), syten::BTT::RandomState::generateNearVacuumState(), and truncateKeepNorm().