Loading...
Searching...
No Matches
damped_newton.h
Go to the documentation of this file.
# ifndef _RHEO_DAMPED_NEWTON_H
# define _RHEO_DAMPED_NEWTON_H
//
// This file is part of Rheolef.
//
// Copyright (C) 2000-2009 Pierre Saramito <Pierre.Saramito@imag.fr>
//
// Rheolef is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// Rheolef is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Rheolef; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// =========================================================================
// AUTHOR: Pierre.Saramito@imag.fr
// DATE: 14 oct 2009
namespace rheolef {
} // namespace rheolef
#include "rheolef/damped-newton-generic.h"
#include "rheolef/newton_add_missing.h"
namespace rheolef {
// [verbatim_damped_newton]
template <class Problem, class Field, class Real, class Size>
int damped_newton (const Problem& F, Field& u, Real& tol, Size& max_iter, odiststream* p_derr=0)
// [verbatim_damped_newton]
{
details::add_missing_damped_newton<Problem> G (F); // TODO: avoid a copy of pb F here: put a reference in G ?
return damped_newton (G, newton_identity_preconditioner(), u, tol, max_iter, p_derr);
}
}// namespace rheolef
# endif // _RHEO_DAMPED_NEWTON_H
rheolef::details::add_missing_damped_newton
Definition newton_add_missing.h:249
rheolef::odiststream
odiststream: see the diststream page for the full documentation
Definition diststream.h:137
rheolef
This file is part of Rheolef.
Definition compiler_eigen.h:39
rheolef::damped_newton
int damped_newton(const Problem &P, const Preconditioner &T, Field &u, Real &tol, Size &max_iter, odiststream *p_derr=0)
see the damped_newton page for the full documentation
Definition damped-newton-generic.h:29
rheolef::newton_identity_preconditioner
Definition damped-newton-generic.h:77
u
Definition leveque.h:25