You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
3.3 KiB

  1. /* -*- c++ -*- (enables emacs c++ mode) */
  2. /*===========================================================================
  3. Copyright (C) 2004-2012 Yves Renard
  4. This file is a part of GETFEM++
  5. Getfem++ is free software; you can redistribute it and/or modify it
  6. under the terms of the GNU Lesser General Public License as published
  7. by the Free Software Foundation; either version 3 of the License, or
  8. (at your option) any later version along with the GCC Runtime Library
  9. Exception either version 3.1 or (at your option) any later version.
  10. This program is distributed in the hope that it will be useful, but
  11. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  12. or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  13. License and GCC Runtime Library Exception for more details.
  14. You should have received a copy of the GNU Lesser General Public License
  15. along with this program; if not, write to the Free Software Foundation,
  16. Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  17. As a special exception, you may use this file as it is a part of a free
  18. software library without restriction. Specifically, if other files
  19. instantiate templates or use macros or inline functions from this file,
  20. or you compile this file and link it with other files to produce an
  21. executable, this file does not by itself cause the resulting executable
  22. to be covered by the GNU Lesser General Public License. This exception
  23. does not however invalidate any other reasons why the executable file
  24. might be covered by the GNU Lesser General Public License.
  25. ===========================================================================*/
  26. #ifndef GMM_PRECOND_H
  27. #define GMM_PRECOND_H
  28. #include "gmm_kernel.h"
  29. /** @file gmm_precond.h
  30. @author Yves Renard <Yves.Renard@insa-lyon.fr>
  31. @date March 29, 2004.
  32. @brief gmm preconditioners.
  33. */
  34. /* Preconditioner concept : */
  35. /* */
  36. /* A the matrix, P the preconditioner PA well conditioned. */
  37. /* PRECOND precontioner type. */
  38. /* mult(P, v, w) : w <- P v */
  39. /* transposed_mult(P, v, w) : w <- transposed(P) v */
  40. /* left_mult(P, v, w) : see qmr solver */
  41. /* right_mult(P, v, w) : see qmr solver */
  42. /* transposed_left_mult(P, v, w) : see qmr solver */
  43. /* transposed_right_mult(P, v, w) : see qmr solver */
  44. /* */
  45. /* PRECOND P() : empty preconditioner. */
  46. /* PRECOND P(A, ...) : preconditioner for the matrix A, with optional */
  47. /* parameters */
  48. /* PRECOND(...) : empty precondtioner with parameters set. */
  49. /* P.build_with(A) : build a precondtioner for A. */
  50. /* */
  51. /* *********************************************************************** */
  52. #endif