queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
OperatorBase.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // QUESO - a library to support the Quantification of Uncertainty
5 // for Estimation, Simulation and Optimization
6 //
7 // Copyright (C) 2008-2017 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #ifndef QUESO_OPERATOR_BASE_H
26 #define QUESO_OPERATOR_BASE_H
27 
28 #include <string>
29 #include <vector>
30 #include <queso/SharedPtr.h>
31 #include <queso/FunctionBase.h>
32 
33 namespace QUESO {
34 
43 class FunctionOperatorBuilder;
44 
45 class OperatorBase {
46 public:
48 
49  OperatorBase();
51 
53  virtual ~OperatorBase();
55 
57 
61  virtual double get_eigenvalue(unsigned int i) const = 0;
62 
64  virtual double get_inverted_eigenvalue(unsigned int i) const = 0;
65 
67  virtual unsigned int get_num_converged() const = 0;
68 
70 
78  inverse_kl_transform(std::vector<double>& xi, double alpha) const = 0;
79 };
80 
81 } // End namespace QUESO
82 
83 #endif // QUESO_OPERATOR_BASE_H
std::shared_ptr< T > Type
Definition: SharedPtr.h:69
virtual unsigned int get_num_converged() const =0
Return the number of converged eigenpairs.
Abstract base class for operator objects. Operators are assumed to be symmetric and positive-definite...
Definition: OperatorBase.h:45
OperatorBase()
Constructor.
Definition: OperatorBase.C:30
virtual double get_inverted_eigenvalue(unsigned int i) const =0
Return the reciprocal of eigenvalue i.
virtual ~OperatorBase()
Destructor.
Definition: OperatorBase.C:34
virtual double get_eigenvalue(unsigned int i) const =0
Return eigenvalue i.
virtual SharedPtr< FunctionBase >::Type inverse_kl_transform(std::vector< double > &xi, double alpha) const =0
Given coefficients xi, computes the Karhunen-Loeve transform.

Generated on Tue Jun 5 2018 19:48:54 for queso-0.57.1 by  doxygen 1.8.5