noisy_iteration.hpp 1.02 KB
Newer Older
1
// Software License for MTL
2
//
3
4
5
6
7
// Copyright (c) 2007 The Trustees of Indiana University.
//               2008 Dresden University of Technology and the Trustees of Indiana University.
//               2010 SimuNova UG (haftungsbeschränkt), www.simunova.com.
// All rights reserved.
// Authors: Peter Gottschling and Andrew Lumsdaine
8
//
9
// This file is part of the Matrix Template Library
10
//
11
12
13
14
15
16
17
18
19
20
21
// See also license.mtl.txt in the distribution.

#ifndef ITL_NOISY_ITERATION_INCLUDE
#define ITL_NOISY_ITERATION_INCLUDE

#include <iostream>
#include <boost/numeric/itl/iteration/cyclic_iteration.hpp>

namespace itl {

  template <class Real, class OStream = std::ostream>
22
  class noisy_iteration : public cyclic_iteration<Real, OStream>
23
24
25
26
27
28
29
30
31
32
33
34
  {
    public:
      template <class Vector>
      noisy_iteration(const Vector& r0, int max_iter_, Real tol_, Real atol_ = Real(0),
		      OStream& out = std::cout)
	: cyclic_iteration<Real, OStream>(r0, max_iter_, tol_, atol_, 1, out)
      {}
  };

} // namespace itl

#endif // ITL_NOISY_ITERATION_INCLUDE