25 #include <queso/GenericMatrixCovarianceFunction.h>
31 template<
class P_V,
class P_M,
class Q_V,
class Q_M>
36 void (*covRoutinePtr)(
const P_V& positionVector1,
const P_V& positionVector2,
const void* routineDataPtr, Q_M& imageMatrix),
37 const void* routinesDataPtr)
40 m_covRoutinePtr (covRoutinePtr),
41 m_routineDataPtr (routinesDataPtr)
44 *
m_env.
subDisplayFile() <<
"Entering GenericMatrixCovarianceFunction<P_V,P_M,Q_V,Q_M>::constructor()"
50 *
m_env.
subDisplayFile() <<
"Leaving GenericMatrixCovarianceFunction<P_V,P_M,Q_V,Q_M>::constructor()"
56 template<
class P_V,
class P_M,
class Q_V,
class Q_M>
59 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
60 *m_env.subDisplayFile() <<
"Entering GenericMatrixCovarianceFunction<P_V,P_M,Q_V,Q_M>::destructor()"
61 <<
": prefix = " << m_prefix
65 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
66 *m_env.subDisplayFile() <<
"Leaving GenericMatrixCovarianceFunction<P_V,P_M,Q_V,Q_M>::destructor()"
67 <<
": prefix = " << m_prefix
72 template<
class P_V,
class P_M,
class Q_V,
class Q_M>
76 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
77 *m_env.subDisplayFile() <<
"Entering GenericMatrixCovarianceFunction<P_V,P_M,Q_V,Q_M>::covMatrix()"
81 unsigned int matrixOrder = m_imageSet.vectorSpace().dimLocal();
89 m_covRoutinePtr(positionVector1, positionVector2, m_routineDataPtr, imageMatrix);
91 if ((m_env.subDisplayFile()) && (m_env.displayVerbosity() >= 54)) {
92 *m_env.subDisplayFile() <<
"Leaving GenericMatrixCovarianceFunction<P_V,P_M,Q_V,Q_M>::covMatrix()"
void covMatrix(const P_V &positionVector1, const P_V &positionVector2, Q_M &imageMatrix) const
Calculates the value of the generic covariance matrix.
unsigned int displayVerbosity() const
const BaseEnvironment & m_env
GenericMatrixCovarianceFunction(const char *prefix, const VectorSet< P_V, P_M > &basicDomainSet, const VectorSet< Q_V, Q_M > &imageSet, void(*covRoutinePtr)(const P_V &positionVector1, const P_V &positionVector2, const void *routineDataPtr, Q_M &imageMatrix), const void *routinesDataPtr)
Default constructor.
#define queso_require_equal_to_msg(expr1, expr2, msg)
#define queso_require_msg(asserted, msg)
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
virtual ~GenericMatrixCovarianceFunction()
Virtual destructor.
A templated (base) class to accommodate covariance matrix of (random) vector functions.