00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ITL_NOISY_ITERATION_INCLUDE
00013 #define ITL_NOISY_ITERATION_INCLUDE
00014
00015 #include <iostream>
00016 #include <boost/numeric/itl/iteration/cyclic_iteration.hpp>
00017
00018 namespace itl {
00019
00020 template <class Real, class OStream = std::ostream>
00021 class noisy_iteration : public cyclic_iteration<Real, OStream>
00022 {
00023 public:
00024 template <class Vector>
00025 noisy_iteration(const Vector& b, int max_iter_, Real tol_, Real atol_ = Real(0),
00026 OStream& out = std::cout)
00027 : cyclic_iteration<Real>(b, max_iter_, tol_, atol_, 1, out)
00028 {}
00029 };
00030
00031 }
00032
00033 #endif // ITL_NOISY_ITERATION_INCLUDE