25 #include <queso/ConstantVectorFunction.h>
26 #include <queso/GslVector.h>
27 #include <queso/GslMatrix.h>
32 template<
class P_V,
class P_M,
class Q_V,
class Q_M>
37 const Q_V& constantImageVector)
42 m_constantImageVector(NULL)
48 template<
class P_V,
class P_M,
class Q_V,
class Q_M>
51 delete m_constantImageVector;
55 template<
class P_V,
class P_M,
class Q_V,
class Q_M>
58 const P_V& domainVector,
59 const P_V* domainDirection,
66 domainVector.env().worldRank(),
67 "ConstantVectorFunction<P_V,P_M,Q_V,Q_M>::compute()",
68 "m_constantImageVector is NULL");
70 imageVector = *m_constantImageVector;
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
Calculates the image vector: assigns to the protected attribute m_constantImageVector the value of th...
A class for handling vector functions which image is constant.
const Q_V * m_constantImageVector
A class for partitioning vectors and matrices.
virtual ~ConstantVectorFunction()
Destructor.
ConstantVectorFunction(const char *prefix, const VectorSet< P_V, P_M > &domainSet, const VectorSet< Q_V, Q_M > &imageSet, const Q_V &constantImageVector)
Default Constructor.
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
A templated (base) class for handling vector functions.