25 #include <queso/ExperimentModel.h>
26 #include <queso/GslVector.h>
27 #include <queso/GslMatrix.h>
31 template<
class S_V,
class S_M,
class D_V,
class D_M>
36 const std::vector<D_M* >& Dmats,
37 const std::vector<D_M* >& Kmats_interp)
39 m_env (Dmats[0]->env()),
40 m_optionsObj (alternativeOptionsValues),
41 m_paper_p_x (experimentStorage.scenarioSpace().dimLocal()),
42 m_paper_n (Dmats.size()),
43 m_paper_p_delta (Dmats[0]->numCols()),
46 m_Kmats_interp (Kmats_interp),
48 m_Dmat_BlockDiag (NULL)
52 <<
": prefix = " << prefix
53 <<
", alternativeOptionsValues = " << alternativeOptionsValues
58 <<
"\n m_paper_n_y = " <<
"to be set soon"
78 unsigned int sumGs = 0;
87 for (
unsigned int i = 0; i <
m_Dmats.size(); ++i) {
93 <<
": prefix = " << prefix
99 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 2)) {
100 *m_env.subDisplayFile() <<
"In ExperimentModel<S_V,S_M,D_V,D_M>::constructor()"
102 <<
", m_Dmat_BlockDiag just created (not yet populated)"
109 std::set<unsigned int> tmpSet;
110 tmpSet.insert(m_env.subId());
118 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 2)) {
119 *m_env.subDisplayFile() <<
"Leaving ExperimentModel<S_V,S_M,D_V,D_M>::constructor()"
125 template<
class S_V,
class S_M,
class D_V,
class D_M>
128 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 2)) {
129 *m_env.subDisplayFile() <<
"Entering ExperimentModel<S_V,S_M,P_V,P_M,Q_V,Q_M>::destructor()..."
133 if (m_Dmat_BlockDiag)
delete m_Dmat_BlockDiag;
134 if (m_n_y_space )
delete m_n_y_space;
135 if (m_optionsObj )
delete m_optionsObj;
137 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 2)) {
138 *m_env.subDisplayFile() <<
"Leaving ExperimentModel<S_V,S_M,P_V,P_M,Q_V,Q_M>::destructor()"
142 if (m_experimentModelOptions) {
143 delete m_experimentModelOptions;
147 template<
class S_V,
class S_M,
class D_V,
class D_M>
151 return m_paper_p_delta;
154 template<
class S_V,
class S_M,
class D_V,
class D_M>
158 return m_optionsObj->m_Gvalues.size();
161 template<
class S_V,
class S_M,
class D_V,
class D_M>
162 const std::vector<unsigned int>&
165 return m_optionsObj->m_Gvalues;
168 template<
class S_V,
class S_M,
class D_V,
class D_M>
169 const std::vector<D_M* >&
172 return m_Kmats_interp;
175 template<
class S_V,
class S_M,
class D_V,
class D_M>
179 return *(m_Dmats[basisId]);
182 template<
class S_V,
class S_M,
class D_V,
class D_M>
186 return *m_Dmat_BlockDiag;
190 template<
class S_V,
class S_M,
class D_V,
class D_M>
197 return *m_experimentModelOptions;
200 template<
class S_V,
class S_M,
class D_V,
class D_M>
unsigned int displayVerbosity() const
std::vector< D_M * > m_Dmats
const BaseEnvironment & m_env
unsigned int m_paper_p_delta
const Map & map() const
Map.
const std::vector< D_M * > & Kmats_interp() const
ExperimentModelOptions * m_experimentModelOptions
const EmOptionsValues * m_optionsObj
ExperimentModel(const char *prefix, const EmOptionsValues *alternativeOptionsValues, const ExperimentStorage< S_V, S_M, D_V, D_M > &experimentStorage, const std::vector< D_M * > &Dmats, const std::vector< D_M * > &Kmats_interp)
#define queso_require_equal_to_msg(expr1, expr2, msg)
std::string optionsInputFileName() const
Access to the attribute m_optionsInputFileName, which stores the name of the input file passed by the...
const std::vector< unsigned int > & Gs() const
const D_M & Dmat(unsigned int basisId) const
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
const std::vector< const S_V * > & xs_standard() const
unsigned int numBasisGroups() const
unsigned int numBasis() const
#define queso_deprecated()
#define queso_require_greater_equal_msg(expr1, expr2, msg)
const D_M & Dmat_BlockDiag() const
void print(std::ostream &os) const
VectorSpace< D_V, D_M > * m_n_y_space
const ExperimentModelOptions & optionsObj() const
std::vector< unsigned int > m_Gvalues