Belos Version of the Day
Loading...
Searching...
No Matches
BelosLSQRIteration.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Belos: Block Linear Solvers Package
4//
5// Copyright 2004-2016 NTESS and the Belos contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef BELOS_LSQR_ITERATION_HPP
11#define BELOS_LSQR_ITERATION_HPP
12
17
18#include "BelosConfigDefs.hpp"
19#include "BelosTypes.hpp"
20#include "BelosIteration.hpp"
21
22namespace Belos {
23
25
26
32 template <class ScalarType, class MV>
34
36 Teuchos::RCP<const MV> U;
37
39 Teuchos::RCP<const MV> V;
40
42 Teuchos::RCP<const MV> W;
43
45 typename Teuchos::ScalarTraits<ScalarType>::magnitudeType lambda;
46
48 ScalarType resid_norm;
49
51 ScalarType frob_mat_norm;
52
54 ScalarType mat_cond_num;
55
57 ScalarType mat_resid_norm;
58
60 ScalarType sol_norm;
61
63 ScalarType bnorm;
64
65 LSQRIterationState() : U(Teuchos::null), V(Teuchos::null),
66 W(Teuchos::null), lambda(0.0),
67 resid_norm(0.0), frob_mat_norm(0.0),
69 sol_norm(0.0), bnorm(0.0)
70 {}
71 };
72
74
75
82class LSQRIterateFailure : public BelosError {public:
83 LSQRIterateFailure(const std::string& what_arg) : BelosError(what_arg)
84 {}};
85
87
88} // end Belos namespace
89
90
91#endif /* BELOS_LSQR_ITERATION_HPP */
Belos header file which uses auto-configuration information to include necessary C++ headers.
Pure virtual base class which describes the basic interface to the linear solver iteration.
Collection of types and exceptions used within the Belos solvers.
BelosError(const std::string &what_arg)
LSQRIterateFailure(const std::string &what_arg)
ScalarType sol_norm
An estimate of the norm of the solution.
ScalarType frob_mat_norm
An approximation to the Frobenius norm of A.
Teuchos::RCP< const MV > V
Bidiagonalization vector.
ScalarType mat_resid_norm
An estimate of the norm of A^T*resid.
Teuchos::RCP< const MV > U
Bidiagonalization vector.
Teuchos::RCP< const MV > W
The search direction vector.
Teuchos::ScalarTraits< ScalarType >::magnitudeType lambda
The damping value.
ScalarType bnorm
The norm of the RHS vector b.
ScalarType resid_norm
The current residual norm.
ScalarType mat_cond_num
An approximation to the condition number of A.

Generated on for Belos by doxygen 1.15.0