#include <stdio.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdarg.h>
#include "soth/api.hpp"
Classes | |
class | soth::sotDebugTrace |
Namespaces | |
namespace | soth |
Defines | |
#define | SOTH_DEBUG_MODE 0 |
#define | SOTH_TEMPLATE_DEBUG_MODE 0 |
#define | SOT_COMMON_TRACES |
#define | sotPREERROR |
#define | sotDEBUG(level) if( 1 ) ; else std::cout |
#define | sotDEBUGMUTE(level) if( 1 ) ; else std::cout |
#define | sotERROR sotERRORFLOW.outputbuffer << sotPREERROR |
#define | sotDEBUGPRIOR(a) do {} while(0) |
#define | sotTDEBUG(level) if( 1 ) ; else std::cout |
#define | sotDEBUG_ENABLE(level) false |
#define | sotTDEBUG_ENABLE(level) false |
#define | sotDEBUGIN(level) sotDEBUG(level) << "# In {" << std::endl |
#define | sotDEBUGOUT(level) sotDEBUG(level) << "# Out }" << std::endl |
#define | sotDEBUGINOUT(level) sotDEBUG(level) << "# In/Out { }" << std::endl |
#define | sotTDEBUGIN(level) sotTDEBUG(level) << "# In {" << std::endl |
#define | sotTDEBUGOUT(level) sotTDEBUG(level) << "# Out }" << std::endl |
#define | sotTDEBUGINOUT(level) sotTDEBUG(level) << "# In/Out { }" << std::endl |
#define | UNUSED(x) ((void)x) |
Functions | |
void | soth::sotDEBUGF (const int, const char *,...) |
void | soth::sotDEBUGF (const char *,...) |
void | soth::sotERRORF (const int, const char *,...) |
void | soth::sotERRORF (const char *,...) |
void | soth::sotTDEBUGF (const int, const char *,...) |
void | soth::sotTDEBUGF (const char *,...) |
#define SOT_COMMON_TRACES |
do { \ va_list arg; \ va_start(arg,format); \ vsnprintf( charbuffer,SIZE,format,arg ); \ va_end(arg); \ outputbuffer << tmpbuffer.str() << charbuffer <<std::endl; \ } while(0)
Referenced by soth::sotDebugTrace::trace(), and soth::sotDebugTrace::traceTemplate().
#define sotDEBUG | ( | level | ) | if( 1 ) ; else std::cout |
Referenced by soth::HCOD::activeSearch(), soth::Stage::addARow(), soth::Stage::applyDamping(), soth::Stage::applyDampingTranspose(), soth::Stage::checkBound(), soth::Stage::computeErrorFromJu(), soth::Stage::computeInitialCOD(), soth::Stage::computeInitialJY(), soth::HCOD::computeLagrangeMultipliers(), soth::Stage::computeLagrangeMultipliers(), soth::Stage::computeMLYtu(), soth::Stage::computeRho(), soth::HCOD::computeSolution(), soth::Stage::computeSolution(), soth::HCOD::computeStep(), soth::HCOD::computeStepAndUpdate(), soth::HCOD::damp(), soth::Stage::damp(), soth::HCOD::debugOnce(), soth::HCOD::downdate(), soth::Stage::downdate(), soth::Stage::freezeSlacks(), soth::HCOD::initialize(), soth::HCOD::makeStep(), soth::maxLambda(), soth::Stage::nullifyACrossFromW(), soth::Stage::nullifyLineDeficient(), soth::Stage::propagateDowndate(), soth::Stage::propagateUpdate(), soth::randu(), soth::Stage::recompose(), soth::Stage::removeACrossFromW(), soth::Stage::removeARowFromL(), soth::Stage::reset(), soth::BasicStage::set(), soth::HCOD::setInitialActiveSet(), soth::Stage::setInitialActiveSet(), soth::Stage::show(), soth::HCOD::testLagrangeMultipliers(), soth::Stage::testRecomposition(), soth::Stage::testUnactiveTwins(), soth::HCOD::update(), soth::Stage::update(), and soth::HCOD::updateY().
#define sotDEBUG_ENABLE | ( | level | ) | false |
Referenced by soth::HCOD::activeSearch(), and soth::Stage::show().
#define sotDEBUGIN | ( | level | ) | sotDEBUG(level) << "# In {" << std::endl |
#define sotDEBUGINOUT | ( | level | ) | sotDEBUG(level) << "# In/Out { }" << std::endl |
#define sotDEBUGMUTE | ( | level | ) | if( 1 ) ; else std::cout |
#define sotDEBUGOUT | ( | level | ) | sotDEBUG(level) << "# Out }" << std::endl |
#define sotDEBUGPRIOR | ( | a | ) | do {} while(0) |
Referenced by soth::Stage::show(), soth::HCOD::testRecomposition(), and soth::HCOD::testSolution().
#define sotERROR sotERRORFLOW.outputbuffer << sotPREERROR |
#define SOTH_DEBUG_MODE 0 |
#define SOTH_TEMPLATE_DEBUG_MODE 0 |
#define sotPREERROR |
"\t!! " << ": " <<__FUNCTION__ \ << "(#" << __LINE__ << ") :"
#define sotTDEBUG | ( | level | ) | if( 1 ) ; else std::cout |
#define sotTDEBUG_ENABLE | ( | level | ) | false |
#define sotTDEBUGIN | ( | level | ) | sotTDEBUG(level) << "# In {" << std::endl |
#define sotTDEBUGINOUT | ( | level | ) | sotTDEBUG(level) << "# In/Out { }" << std::endl |
#define sotTDEBUGOUT | ( | level | ) | sotTDEBUG(level) << "# Out }" << std::endl |
#define UNUSED | ( | x | ) | ((void)x) |