25 #ifndef UQ_GENERIC_VECTOR_FUNCTION_H
26 #define UQ_GENERIC_VECTOR_FUNCTION_H
28 #include <queso/Environment.h>
29 #include <queso/DistArray.h>
30 #include <queso/VectorSet.h>
31 #include <queso/VectorFunction.h>
46 template <
class P_V = GslVector,
class P_M = GslMatrix,
class Q_V = GslVector,
class Q_M = GslMatrix>
59 void (*routinePtr)(
const P_V& domainVector,
60 const P_V* domainDirection,
61 const void* functionDataPtr,
66 const void* functionDataPtr);
73 void compute (
const P_V& domainVector,
75 const P_V* domainDirection,
89 const P_V* domainDirection,
90 const void* functionDataPtr,
105 #endif // UQ_GENERIC_VECTOR_FUNCTION_H
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 ~GenericVectorFunction()
Virtual destructor.
A class for handling generic vector functions.
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.
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...
A class for partitioning vectors and matrices.
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.
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...
const void * m_routineDataPtr