queso-0.57.1
|
A class for handling generic vector functions. More...
#include <GenericVectorFunction.h>
Public Member Functions | |
Constructor/Destructor methods | |
GenericVectorFunction (const char *prefix, const VectorSet< P_V, P_M > &domainSet, const VectorSet< Q_V, Q_M > &imageSet, void(*routinePtr)(const P_V &domainVector, const P_V *domainDirection, const void *functionDataPtr, Q_V &imageVector, DistArray< P_V * > *gradVectors, DistArray< P_M * > *hessianMatrices, DistArray< P_V * > *hessianEffects), const void *functionDataPtr) | |
Default constructor. More... | |
virtual | ~GenericVectorFunction () |
Virtual destructor. More... | |
Mathematical method | |
void | compute (const P_V &domainVector, const P_V *domainDirection, Q_V &imageVector, DistArray< P_V * > *gradVectors, DistArray< P_M * > *hessianMatrices, DistArray< P_V * > *hessianEffects) const |
Calls the protected member *m_routinePtr (), in order to calculate the image vector imageVector . More... | |
Public Member Functions inherited from QUESO::BaseVectorFunction< P_V, P_M, Q_V, Q_M > | |
BaseVectorFunction (const char *prefix, const VectorSet< P_V, P_M > &domainSet, const VectorSet< Q_V, Q_M > &imageSet) | |
Default Constructor. More... | |
virtual | ~BaseVectorFunction () |
Destructor. More... | |
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 of the class VectorSet. More... | |
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 the class VectorSet. More... | |
Protected Attributes | |
void(* | m_routinePtr )(const P_V &domainVector, const P_V *domainDirection, const void *functionDataPtr, Q_V &imageVector, DistArray< P_V * > *gradVectors, DistArray< P_M * > *hessianMatrices, DistArray< P_V * > *hessianEffects) |
Routine defining a vector-valued function. More... | |
const void * | m_routineDataPtr |
Protected Attributes inherited from QUESO::BaseVectorFunction< P_V, P_M, Q_V, Q_M > | |
const BaseEnvironment & | m_env |
std::string | m_prefix |
const VectorSet< P_V, P_M > & | m_domainSet |
Domain set of the vector function. More... | |
const VectorSet< Q_V, Q_M > & | m_imageSet |
Image set of the vector function. More... | |
A class for handling generic vector functions.
This class allows the mathematical definition of a vector function such as: \( \mathbf{q}: B \subset R^n \rightarrow R^m \). It is derived from BaseVectorFunction.
Definition at line 47 of file GenericVectorFunction.h.
QUESO::GenericVectorFunction< P_V, P_M, Q_V, Q_M >::GenericVectorFunction | ( | const char * | prefix, |
const VectorSet< P_V, P_M > & | domainSet, | ||
const VectorSet< Q_V, Q_M > & | imageSet, | ||
void(*)(const P_V &domainVector, const P_V *domainDirection, const void *functionDataPtr, Q_V &imageVector, DistArray< P_V * > *gradVectors, DistArray< P_M * > *hessianMatrices, DistArray< P_V * > *hessianEffects) | routinePtr, | ||
const void * | functionDataPtr | ||
) |
Default constructor.
Instantiates an object of this
class given its prefix, domain and a pointer to a routine. This routine plays the role of a vector-valued function, and it is useful, for instance, to calculate the likelihood (and its image set).
Definition at line 33 of file GenericVectorFunction.C.
|
virtual |
|
virtual |
Calls the protected member *m_routinePtr
(), in order to calculate the image vector imageVector
.
Implements QUESO::BaseVectorFunction< P_V, P_M, Q_V, Q_M >.
Definition at line 63 of file GenericVectorFunction.C.
|
protected |
Definition at line 95 of file GenericVectorFunction.h.
|
protected |
Routine defining a vector-valued function.
The presence of the parameters gradVectors
, hessianMatrices
and hessianEffects
allows the user to calculate gradient vectors, Hessian matrices and Hessian effects; which can hold important information about her/his statistical application. Used, for instance to define the likelihood.
Definition at line 88 of file GenericVectorFunction.h.