SyTen

◆ progress()

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.

Parameters
icurrent progress index, affecting the character to print.
quietif true, don't print anything at all.
sif nonempty, write s instead of the default character appropriate for i
use_errorif 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: