Belos
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
src
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
22
namespace
Belos
{
23
25
26
32
template
<
class
ScalarType,
class
MV>
33
struct
LSQRIterationState
{
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),
68
mat_cond_num
(0.0),
mat_resid_norm
(0.0),
69
sol_norm
(0.0),
bnorm
(0.0)
70
{}
71
};
72
74
75
82
class
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 */
BelosConfigDefs.hpp
Belos header file which uses auto-configuration information to include necessary C++ headers.
BelosIteration.hpp
Pure virtual base class which describes the basic interface to the linear solver iteration.
BelosTypes.hpp
Collection of types and exceptions used within the Belos solvers.
Belos::BelosError::BelosError
BelosError(const std::string &what_arg)
Definition
BelosTypes.hpp:30
Belos::LSQRIterateFailure::LSQRIterateFailure
LSQRIterateFailure(const std::string &what_arg)
Definition
BelosLSQRIteration.hpp:83
Belos
Definition
Belos_Details_EBelosSolverType.cpp:13
Belos::LSQRIterationState::sol_norm
ScalarType sol_norm
An estimate of the norm of the solution.
Definition
BelosLSQRIteration.hpp:60
Belos::LSQRIterationState::frob_mat_norm
ScalarType frob_mat_norm
An approximation to the Frobenius norm of A.
Definition
BelosLSQRIteration.hpp:51
Belos::LSQRIterationState::V
Teuchos::RCP< const MV > V
Bidiagonalization vector.
Definition
BelosLSQRIteration.hpp:39
Belos::LSQRIterationState::mat_resid_norm
ScalarType mat_resid_norm
An estimate of the norm of A^T*resid.
Definition
BelosLSQRIteration.hpp:57
Belos::LSQRIterationState::U
Teuchos::RCP< const MV > U
Bidiagonalization vector.
Definition
BelosLSQRIteration.hpp:36
Belos::LSQRIterationState::W
Teuchos::RCP< const MV > W
The search direction vector.
Definition
BelosLSQRIteration.hpp:42
Belos::LSQRIterationState::lambda
Teuchos::ScalarTraits< ScalarType >::magnitudeType lambda
The damping value.
Definition
BelosLSQRIteration.hpp:45
Belos::LSQRIterationState::LSQRIterationState
LSQRIterationState()
Definition
BelosLSQRIteration.hpp:65
Belos::LSQRIterationState::bnorm
ScalarType bnorm
The norm of the RHS vector b.
Definition
BelosLSQRIteration.hpp:63
Belos::LSQRIterationState::resid_norm
ScalarType resid_norm
The current residual norm.
Definition
BelosLSQRIteration.hpp:48
Belos::LSQRIterationState::mat_cond_num
ScalarType mat_cond_num
An approximation to the condition number of A.
Definition
BelosLSQRIteration.hpp:54
Generated for Belos by
1.17.0