SyTen

◆ to_string_real()

template<typename T >
std::string syten::to_string_real ( T const &  arg,
int  precision = 3 
)
inline

Write the real part of the argument and the imaginary part only if it is nonzero.

References imag(), overThreshold(), real(), std::setprecision(), std::showpos(), std::stringstream::str(), and SYTEN_ZERO_THRESHOLD.

Referenced by syten::T3N::TDVP::Worker::do_step(), syten::MPS::TEBD::doTEBD_parallel(), syten::MPS::TEBD::doTEBD_serial(), syten::MPS::TDVP::PTDVP< enable >::get_psi(), syten::T3N::TDVP::Worker::log_time_step(), syten::T3N::TDVP::Worker::run(), syten::MPS::TDVP::LBOWorker::run(), syten::MPS::TDVP::PTDVP< enable >::run(), syten::MPS::TEBD::save_state(), syten::MPS::TDVP::PTDVP< enable >::saveState(), and syten::Krylov::Evolution::Evolver< Solver >::wrapupstep().

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