OOFEM 3.0
Loading...
Searching...
No Matches
diagpre.h
Go to the documentation of this file.
1/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
2/* ******** *** SparseLib++ */
3/* ******* ** *** *** *** v. 1.5c */
4/* ***** *** ******** ******** */
5/* ***** *** ******** ******** R. Pozo */
6/* ** ******* *** ** *** *** K. Remington */
7/* ******** ******** A. Lumsdaine */
8/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
9/* */
10/* */
11/* SparseLib++ : Sparse Matrix Library */
12/* */
13/* National Institute of Standards and Technology */
14/* University of Notre Dame */
15/* Authors: R. Pozo, K. Remington, A. Lumsdaine */
16/* */
17/* NOTICE */
18/* */
19/* Permission to use, copy, modify, and distribute this software and */
20/* its documentation for any purpose and without fee is hereby granted */
21/* provided that the above notice appear in all copies and supporting */
22/* documentation. */
23/* */
24/* Neither the Institutions (National Institute of Standards and Technology, */
25/* University of Notre Dame) nor the Authors make any representations about */
26/* the suitability of this software for any purpose. This software is */
27/* provided ``as is'' without expressed or implied warranty. */
28/* */
29/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
30
31#ifndef diagpre_h
32#define diagpre_h
33
34#include "floatarray.h"
35#include "sparsemtrx.h"
36#include "precond.h"
37
38namespace oofem {
43{
44private:
46
47public:
49 DiagPreconditioner(const SparseMtrx &, InputRecord & attributes);
53 virtual ~DiagPreconditioner(void) { }
54
55 void init(const SparseMtrx &a) override;
56
57 void solve(const FloatArray &rhs, FloatArray &solution) const override;
58 void trans_solve(const FloatArray &rhs, FloatArray &solution) const override;
59
60 const char *giveClassName() const override { return "DiagPre"; }
61};
62} // end namespace oofem
63#endif // diagpre_h
DiagPreconditioner()
Constructor. The user should call initializeFrom and init services in this given order to ensure cons...
Definition diagpre.h:51
virtual ~DiagPreconditioner(void)
Destructor.
Definition diagpre.h:53
DiagPreconditioner(const SparseMtrx &, InputRecord &attributes)
Constructor. Initializes the the receiver (constructs the precontioning matrix M) of given matrix.
Definition diagpre.C:35
const char * giveClassName() const override
Returns the preconditioner name.
Definition diagpre.h:60
Preconditioner(const SparseMtrx &a, InputRecord &attributes)
Definition precond.C:38
FloatArrayF< N > solve(FloatMatrixF< N, N > mtrx, const FloatArrayF< N > &b, double zeropiv=1e-20)
#define OOFEM_EXPORT
Definition oofemcfg.h:7

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011