Skylark (Sketching Library)  0.1
/var/lib/jenkins/jobs/Skylark/workspace/algorithms/Krylov/iter_params.hpp
Go to the documentation of this file.
00001 #ifndef SKYLARK_ITER_PARAMS_HPP
00002 #define SKYLARK_ITER_PARAMS_HPP
00003 
00004 #include <ostream>
00005 
00006 namespace skylark { namespace nla {
00007 
00008 struct iter_params_t {
00009 
00010     double tolerance;
00011     bool am_i_printing;
00012     int iter_lim;
00013     int log_level;
00014     std::ostream& log_stream;
00015     int debug_level;
00016 
00017     iter_params_t(double tolerance = 1e-14,
00018         bool am_i_printing = 0,
00019         int iter_lim = 100,
00020         int log_level = 0,
00021         std::ostream &log_stream = std::cout,
00022         int debug_level = 0) : tolerance(tolerance),
00023                                am_i_printing(am_i_printing),
00024                                iter_lim(iter_lim),
00025                                log_level(log_level),
00026                                log_stream(log_stream),
00027                                debug_level(debug_level) {
00028 
00029   }
00030 
00031 };
00032 
00033 } } // namespace skylark::nla
00034 
00035 
00036 #endif // SKYLARK_ITER_PARAMS_HPP