queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
VectorFunction.C
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 #include <queso/VectorFunction.h>
26 #include <queso/GslVector.h>
27 #include <queso/GslMatrix.h>
28 
29 namespace QUESO {
30 
31 // Default constructor -----------------------------
32 template<class P_V,class P_M,class Q_V,class Q_M>
34  const char* prefix,
35  const VectorSet<P_V,P_M>& domainSet,
36  const VectorSet<Q_V,Q_M>& imageSet)
37  :
38  m_env (domainSet.env()),
39  m_prefix ((std::string)(prefix)+"func_"),
40  m_domainSet(domainSet),
41  m_imageSet (imageSet)
42 {
43 }
44 
45 // Destructor ---------------------------------------
46 template<class P_V,class P_M,class Q_V,class Q_M>
48 {
49 }
50 
51 // Math methods -------------------------------------
52 template<class P_V,class P_M,class Q_V,class Q_M>
53 const VectorSet<P_V,P_M>&
55 {
56  return m_domainSet;
57 }
58 
59 
60 template<class P_V,class P_M,class Q_V,class Q_M>
61 const VectorSet<Q_V,Q_M>&
63 {
64  return m_imageSet;
65 }
66 
67 } // End namespace QUESO
68 
const VectorSet< Q_V, Q_M > & imageSet() const
Access to the protected attribute m_imageSet: image set of the vector function/ It is an instance of ...
A templated (base) class for handling vector functions.
virtual ~BaseVectorFunction()
Destructor.
const VectorSet< P_V, P_M > & domainSet() const
Access to the protected attribute m_domainSet: domain set of the vector function. It is an instance o...
BaseVectorFunction(const char *prefix, const VectorSet< P_V, P_M > &domainSet, const VectorSet< Q_V, Q_M > &imageSet)
Default Constructor.

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