void syten::progress | ( | std::uint64_t | i, |
bool | quiet, | ||
std::string | s = "" , |
||
bool | use_error = true |
||
) |
Outputs a single character to std::cerr
unless quiet
.
i | current progress index, affecting the character to print. |
quiet | if true, don't print anything at all. |
s | if nonempty, write s instead of the default character appropriate for i |
use_error | if true, write to std::cerr, else std::cout |
References std::string::empty(), and std::flush().
Referenced by syten::MPS::RDMs::OneParticleRDM::construct(), syten::MPS::QcLatticeGenerator::construct_su2u1(), syten::MPS::ProjectedPurification::correlator(), syten::T3N::RandomState::generateCompleteState_rec(), syten::MPS::RandomState::generateNearFermiSeaState(), syten::T3N::RandomState::generateNearVacuumState_rec(), syten::MPS::RandomState::generateSampledState(), syten::Pyten::init_log(), syten::MPS::ProjectedPurification::local_expectation(), and syten::MPS::overlap().