queso-0.53.0
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-2015 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 <boost/shared_ptr.hpp>
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 
77  virtual boost::shared_ptr<FunctionBase>
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
virtual double get_eigenvalue(unsigned int i) const =0
Return eigenvalue i.
virtual boost::shared_ptr< FunctionBase > inverse_kl_transform(std::vector< double > &xi, double alpha) const =0
Given coefficients xi, computes the Karhunen-Loeve transform.
virtual double get_inverted_eigenvalue(unsigned int i) const =0
Return the reciprocal of eigenvalue i.
virtual ~OperatorBase()
Destructor.
Definition: OperatorBase.C:34
OperatorBase()
Constructor.
Definition: OperatorBase.C:30
Abstract base class for operator objects. Operators are assumed to be symmetric and positive-definite...
Definition: OperatorBase.h:45
virtual unsigned int get_num_converged() const =0
Return the number of converged eigenpairs.

Generated on Thu Jun 11 2015 13:52:31 for queso-0.53.0 by  doxygen 1.8.5