42 #ifndef THYRA_MODEL_EVALUATOR_BASE_DECL_HPP
43 #define THYRA_MODEL_EVALUATOR_BASE_DECL_HPP
46 #include "Thyra_LinearOpWithSolveBase.hpp"
47 #include "Teuchos_Describable.hpp"
48 #include "Teuchos_any.hpp"
49 #include "Teuchos_Assert.hpp"
51 #ifdef HAVE_THYRA_ME_POLYNOMIAL
52 # include "Teuchos_Polynomial.hpp"
56 class ProductEpetraVector;
57 class ProductEpetraMultiVector;
58 class ProductEpetraOperator;
158 template<
class Scalar>
184 template<
typename ObjectType>
187 template<
typename ObjectType>
190 template<
typename ObjectType>
193 #ifdef HAVE_THYRA_ME_POLYNOMIAL
204 #endif // HAVE_THYRA_ME_POLYNOMIAL
255 bool cloneObjects =
false
280 template<
typename ObjectType>
288 std::string modelEvalDescription_;
295 #ifdef HAVE_THYRA_ME_POLYNOMIAL
298 #endif // HAVE_THYRA_ME_POLYNOMIAL
303 Scalar W_x_dot_dot_coeff_;
305 Scalar stage_number_;
311 void assert_l(
int l)
const;
313 std::map<std::string,Teuchos::any> extended_inargs_;
329 template<
class ObjType>
334 : evalType_(EVAL_TYPE_EXACT) {}
339 :
RCP<ObjType>(obj), evalType_(EVAL_TYPE_EXACT) {}
342 :
RCP<ObjType>(obj), evalType_(evalType) {}
347 { this->
operator=(obj); evalType_ = evalType; }
371 :supportsLinearOp_(false), supportsMVByCol_(false), supportsTransMVByRow_(false)
375 :supportsLinearOp_(true), supportsMVByCol_(false), supportsTransMVByRow_(false)
379 :supportsLinearOp_(false), supportsMVByCol_(mvOrientation==
DERIV_MV_BY_COL)
384 { supportsLinearOp_ =
true;
return *
this; }
388 switch(mvOrientation) {
397 {
return ( !supportsLinearOp_ && !supportsMVByCol_ && !supportsTransMVByRow_ ); }
400 {
return supportsLinearOp_; }
404 switch(mvOrientation) {
415 supportsLinearOp_ == derivSupport.supportsLinearOp_
416 && supportsMVByCol_ == derivSupport.supportsMVByCol_
417 && supportsTransMVByRow_ == derivSupport.supportsTransMVByRow_
423 bool supportsLinearOp_;
424 bool supportsMVByCol_;
425 bool supportsTransMVByRow_;
460 bool in_supportsAdjoint
470 template<
class Scalar>
484 { orientation_ = orientation; };
487 { mv_.assert_not_null();
return *
this; }
493 {
return orientation_; }
508 template<
class Scalar>
520 ) : dmv_(mv,orientation) {}
526 {
return ( lo_.get()==NULL && dmv_.getMultiVector().get()==NULL ); }
529 { dmv_.assert_not_null(); lo_.assert_not_null();
return *
this; }
535 {
return dmv_.getMultiVector(); }
538 {
return dmv_.getOrientation(); }
548 if (derivSupport.
none())
584 ) : mv_(mv.
assert_not_null()), orientation_(orientation), paramIndexes_(paramIndexes) {}
587 { orientation_ = orientation; };
596 {
return orientation_; }
599 {
return paramIndexes_; }
626 ) : dmv_(mv,orientation) {}
654 if (derivSupport.
none())
786 template<
class Scalar>
825 template<
typename ObjectType>
828 template<
typename ObjectType>
831 template<
typename ObjectType>
895 void set_DgDx_dot_mp(
int j,
const MPDerivative &DgDx_dot_mp_j);
901 void set_DgDp_mp(
int j,
int l,
const MPDerivative &DgDp_mp_j_l );
905 #ifdef HAVE_THYRA_ME_POLYNOMIAL
910 #endif // HAVE_THYRA_ME_POLYNOMIAL
956 template<
typename ObjectType>
1002 std::string modelEvalDescription_;
1040 #ifdef HAVE_THYRA_ME_POLYNOMIAL
1042 #endif // HAVE_THYRA_ME_POLYNOMIAL
1043 mutable bool isFailed_;
1045 std::map<std::string,Teuchos::any> extended_outargs_;
1049 void assert_supports(
1053 void assert_supports(
1057 void assert_supports(
1061 void assert_supports(
1067 void assert_supports(
1071 void assert_supports(
1075 void assert_supports(
1079 void assert_supports(
1084 void assert_l(
int l)
const;
1085 void assert_j(
int j)
const;
1091 #ifdef HAVE_PROTECTED_NESTED_TEMPLATE_CLASS_ACCESS
1105 template<
class Scalar>
1121 template<
typename ObjectType>
1136 template<
class Scalar>
1158 template<
typename ObjectType>
1225 getOtherDerivativeMultiVectorOrientation(
1237 template<
class Scalar>
1238 template<
typename ObjectType>
1241 std::map<std::string,Teuchos::any>::const_iterator search =
1242 extended_inargs_.find(
typeid(ObjectType).name());
1244 if (search == extended_inargs_.end())
1250 template<
class Scalar>
1251 template<
typename ObjectType>
1254 std::map<std::string,Teuchos::any>::iterator search = extended_inargs_.find(
typeid(ObjectType).name());
1257 "ERROR: InArgs::set<ObjectType>() was called with unsupported extended data type \""
1258 <<
typeid(ObjectType).name() <<
"\"!");
1263 template<
class Scalar>
1264 template<
typename ObjectType>
1268 std::map<std::string,Teuchos::any>::const_iterator search = extended_inargs_.find(
typeid(ObjectType).name());
1271 "ERROR: InArgs::get<ObjectType>() was called with unsupported extended data type \""
1272 <<
typeid(ObjectType).name() <<
"\"!");
1277 template<
class Scalar>
1278 template<
class ObjectType>
1282 this->
template _setSupports<ObjectType>(in_supports);
1285 template<
class Scalar>
1286 template<
class ObjectType>
1295 this->extended_inargs_[
typeid(ObjectType).name()] =
Teuchos::any();
1298 std::map<std::string,Teuchos::any>::iterator search =
1299 this->extended_inargs_.find(
typeid(ObjectType).name());
1301 if (search != this->extended_inargs_.end())
1302 this->extended_inargs_.erase(
typeid(ObjectType).name());
1307 template<
class Scalar>
1308 template<
typename ObjectType>
1311 std::map<std::string,Teuchos::any>::const_iterator search =
1312 extended_outargs_.find(
typeid(ObjectType).name());
1314 if (search == extended_outargs_.end())
1320 template<
class Scalar>
1321 template<
typename ObjectType>
1324 std::map<std::string,Teuchos::any>::iterator search = extended_outargs_.find(
typeid(ObjectType).name());
1327 "ERROR: OutArgs::set<ObjectType>() was called with unsupported extended data type \""
1328 <<
typeid(ObjectType).name() <<
"\"!");
1333 template<
class Scalar>
1334 template<
typename ObjectType>
1338 std::map<std::string,Teuchos::any>::const_iterator search = extended_outargs_.find(
typeid(ObjectType).name());
1341 "ERROR: OutArgs::get<ObjectType>() was called with unsupported extended data type \""
1342 <<
typeid(ObjectType).name() <<
"\"!");
1347 template<
class Scalar>
1348 template<
class ObjectType>
1352 this->
template _setSupports<ObjectType>(in_supports);
1355 template<
class Scalar>
1356 template<
class ObjectType>
1365 this->extended_outargs_[
typeid(ObjectType).name()] =
Teuchos::any();
1368 std::map<std::string,Teuchos::any>::iterator search =
1369 this->extended_outargs_.find(
typeid(ObjectType).name());
1371 if (search != this->extended_outargs_.end())
1372 this->extended_outargs_.erase(
typeid(ObjectType).name());
1385 case ModelEvaluatorBase::IN_ARG_x_dot_dot:
1386 return "IN_ARG_x_dot_dot";
1387 case ModelEvaluatorBase::IN_ARG_x_dot:
1388 return "IN_ARG_x_dot";
1389 case ModelEvaluatorBase::IN_ARG_x:
1391 case ModelEvaluatorBase::IN_ARG_x_dot_poly:
1392 return "IN_ARG_x_dot_poly";
1393 case ModelEvaluatorBase::IN_ARG_x_poly:
1394 return "IN_ARG_x_poly";
1395 case ModelEvaluatorBase::IN_ARG_x_dot_mp:
1396 return "IN_ARG_x_dot_mp";
1397 case ModelEvaluatorBase::IN_ARG_x_mp:
1398 return "IN_ARG_x_mp";
1399 case ModelEvaluatorBase::IN_ARG_t:
1401 case ModelEvaluatorBase::IN_ARG_alpha:
1402 return "IN_ARG_alpha";
1403 case ModelEvaluatorBase::IN_ARG_beta:
1404 return "IN_ARG_beta";
1405 case ModelEvaluatorBase::IN_ARG_W_x_dot_dot_coeff:
1406 return "IN_ARG_W_x_dot_dot_coeff";
1407 case ModelEvaluatorBase::IN_ARG_step_size:
1408 return "IN_ARG_step_size";
1409 case ModelEvaluatorBase::IN_ARG_stage_number:
1410 return "IN_ARG_stage_number";
1411 #ifdef TEUCHOS_DEBUG
1424 case ModelEvaluatorBase::OUT_ARG_f:
1426 case ModelEvaluatorBase::OUT_ARG_W:
1428 case ModelEvaluatorBase::OUT_ARG_f_mp:
1429 return "OUT_ARG_f_mp";
1430 case ModelEvaluatorBase::OUT_ARG_W_mp:
1431 return "OUT_ARG_W_mp";
1432 case ModelEvaluatorBase::OUT_ARG_W_op:
1433 return "OUT_ARG_W_op";
1434 case ModelEvaluatorBase::OUT_ARG_W_prec:
1435 return "OUT_ARG_W_prec";
1436 case ModelEvaluatorBase::OUT_ARG_f_poly:
1437 return "OUT_ARG_f_poly";
1438 #ifdef TEUCHOS_DEBUG
1449 ModelEvaluatorBase::EDerivativeMultiVectorOrientation orientation
1452 switch(orientation) {
1453 case ModelEvaluatorBase::DERIV_MV_BY_COL:
1454 return "DERIV_MV_BY_COL";
1455 case ModelEvaluatorBase::DERIV_TRANS_MV_BY_ROW:
1456 return "DERIV_TRANS_MV_BY_ROW";
1457 #ifdef TEUCHOS_DEBUG
1468 Thyra::getOtherDerivativeMultiVectorOrientation(
1469 ModelEvaluatorBase::EDerivativeMultiVectorOrientation orientation
1472 switch(orientation) {
1473 case ModelEvaluatorBase::DERIV_MV_BY_COL:
1474 return ModelEvaluatorBase::DERIV_TRANS_MV_BY_ROW;
1475 case ModelEvaluatorBase::DERIV_TRANS_MV_BY_ROW:
1476 return ModelEvaluatorBase::DERIV_MV_BY_COL;
1477 #ifdef TEUCHOS_DEBUG
1482 return ModelEvaluatorBase::DERIV_MV_BY_COL;
1486 #endif // THYRA_MODEL_EVALUATOR_BASE_DECL_HPP
Protected subclass of InArgs that only ModelEvaluator subclasses can access to set up the selection o...
int Ng() const
Return the number of axillary response functions g(j)(...) supported (Ng >= 0).
bool supports(EDerivativeMultiVectorOrientation mvOrientation) const
EDerivativeMultiVectorOrientation getOrientation() const
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
Create a more detailed description along about this object and the ModelEvaluator that created it...
RCP< Stokhos::ProductEpetraMultiVector > getMultiVector() const
RCP< MultiVectorBase< Scalar > > getMultiVector() const
std::string description() const
void set_DgDx_properties(int j, const DerivativeProperties &properties)
void _set_Np_Ng(int Np, int Ng)
MPDerivative(const RCP< Stokhos::ProductEpetraOperator > &lo)
void set_DfDp_properties(int l, const DerivativeProperties &properties)
Base class for all linear operators that can support a high-level solve operation.
bool is_null(const boost::shared_ptr< T > &p)
void set_step_size(Scalar step_size)
Precondition: supports(IN_ARG_step_size)==true.
Scalar get_beta() const
Precondition: supports(IN_ARG_beta)==true.
RCP< Stokhos::ProductEpetraVector > get_g_mp(int j) const
Precondition: supports(OUT_ARG_g_mp)==true..
void set_x_dot_dot(const RCP< const VectorBase< Scalar > > &x_dot_dot)
Precondition: supports(IN_ARG_x_dot_dot)==true.
void setArgs(const OutArgs< Scalar > &outArgs, bool ignoreUnsupported=false)
Set all arguments fron outArgs into *this.
bool supports() const
Determines if an extended input argument of type ObjectType is supported.
ScalarMag get_t() const
.Precondition: supports(IN_ARG_t)==true
static const int NUM_E_IN_ARGS_MEMBERS
void _set_DfDp_properties(int l, const DerivativeProperties &properties)
Concrete aggregate class for all output arguments computable by a ModelEvaluator subclass object...
Derivative< Scalar > get_DfDp(int l) const
Precondition: supports(OUT_ARG_DfDp,l)==true.
void set_g(int j, const Evaluation< VectorBase< Scalar > > &g_j)
Precondition: supports(OUT_ARG_g)==true.
RCP< const VectorBase< Scalar > > get_x_dot() const
Precondition: supports(IN_ARG_x_dot)==true.
EDerivativeMultiVectorOrientation
std::string modelEvalDescription() const
MPDerivative(const RCP< Stokhos::ProductEpetraMultiVector > &mv, const EDerivativeMultiVectorOrientation orientation=DERIV_MV_BY_COL)
static const int NUM_E_OUT_ARGS_MEMBERS
void setModelEvalDescription(const std::string &modelEvalDescription)
void set_W_mp(const RCP< Stokhos::ProductEpetraOperator > &W_mp)
Precondition: supports(OUT_ARG_W_mp)==true.
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
void _set_DgDx_dot_properties(int j, const DerivativeProperties &properties)
void set_W_prec(const RCP< PreconditionerBase< Scalar > > &W_prec)
Precondition: supports(OUT_ARG_W_op)==true.
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
Create a more detailed description along about this object and the ModelEvaluator that created it...
void set_Np_Ng(int Np, int Ng)
EEvalType getType() const
void _setUnsupportsAndRelated(EInArgsMembers arg)
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
void set(const RCP< const ObjectType > &uo)
Set an extended output argument of type ObjectType in OutArgs. Precondition: supports()==true.
void changeOrientation(const EDerivativeMultiVectorOrientation orientation)
void describe(Teuchos::FancyOStream &, const Teuchos::EVerbosityLevel) const
MPDerivativeMultiVector()
void set_x_dot_mp(const RCP< const Stokhos::ProductEpetraVector > &x_dot_mp)
Precondition: supports(IN_ARG_x_dot_mp)==true.
void _setUnsupportsAndRelated(EInArgsMembers arg)
Simple aggregate class that stores a derivative object as a general linear operator or as a multi-vec...
void set(const RCP< const ObjectType > &uo)
Set an extended input object of type ObjectType in the InArgs. Precondition: supports()==true.
bool isSameSupport(const DerivativeSupport &derivSupport) const
Evaluation< VectorBase< Scalar > > get_g(int j) const
Precondition: supports(OUT_ARG_g)==true..
DerivativeMultiVector(const RCP< MultiVectorBase< Scalar > > &mv, const EDerivativeMultiVectorOrientation orientation=DERIV_MV_BY_COL)
Evaluation< VectorBase< Scalar > > get_f() const
Precondition: supports(OUT_ARG_f)==true.
Jacobian form DhDz (nz columns of h_space vectors)
RCP< const ObjectType > get() const
Get an extended input object of type ObjectType>/tt> from the InArgs. Precondition: supports()==true...
EDerivativeLinearity linearity
RCP< const Stokhos::ProductEpetraVector > get_x_mp() const
Precondition: supports(IN_ARG_x_mp)==true.
std::string description() const
Do an exact evaluation (default)
void _setSupports(EOutArgsMembers arg, bool supports)
MPDerivative(const MPDerivativeMultiVector &dmv)
Derivative(const RCP< MultiVectorBase< Scalar > > &mv, const EDerivativeMultiVectorOrientation orientation=DERIV_MV_BY_COL)
Evaluation(const RCP< ObjType > &obj)
Implicit conversion from RCP<ObjType>.
Simple interface class to access a precreated preconditioner as one or more linear operators objects ...
DerivativeProperties get_DgDx_dot_properties(int j) const
Return the know properties of DgDx_dot(j) (precondition: supports(OUT_ARG_DgDx_dot,j)==true).
DerivativeSupport & plus(EDerivativeMultiVectorOrientation mvOrientation)
Simple aggregate class for a derivative object represented as a column-wise multi-vector or its trans...
Derivative< Scalar > get_DgDp(int j, int l) const
Precondition: supports(OUT_ARG_DgDp,j,l)==true.
bool isSupportedBy(const DerivativeSupport &derivSupport) const
Returns true if the form of the derivative contained here is supported by deriveSupport.
void changeOrientation(const EDerivativeMultiVectorOrientation orientation)
RCP< const ObjectType > get() const
Get an extended output argument of type ObjectType from OutArgs. Precondition: supports()==true.
Gradient form DhDz^T (nh columns of z_space vectors)
bool isSupportedBy(const DerivativeSupport &derivSupport) const
Returns true if the form of the derivative contained here is supported by deriveSupport.
DerivativeProperties get_DgDx_properties(int j) const
Return the know properties of DgDx(j) (precondition: supports(OUT_ARG_DgDx,j)==true).
Evaluation(const RCP< ObjType > &obj, EEvalType evalType)
MPDerivativeMultiVector getDerivativeMultiVector() const
void set_W_properties(const DerivativeProperties &properties)
void setSupports(EInArgsMembers arg, bool supports=true)
int Np() const
Return the number of parameter subvectors p(l) supported (Np >= 0).
void set_stage_number(Scalar stage_number)
Precondition: supports(IN_ARG_stage_number)==true.
An approx. eval. for a F.D. deriv.
void set_x(const RCP< const VectorBase< Scalar > > &x)
Precondition: supports(IN_ARG_x)==true.
Simple aggregate class for a derivative object represented as a column-wise multi-vector or its trans...
void setUnsupportsAndRelated(EInArgsMembers arg)
Interface for a collection of column vectors called a multi-vector.
void setUnsupportsAndRelated(EInArgsMembers arg)
void setArgs(const InArgs< Scalar > &inArgs, bool ignoreUnsupported=false, bool cloneObjects=false)
Set non-null arguments (does not overwrite non-NULLs with NULLs) .
void set_DgDp(int j, int l, const Derivative< Scalar > &DgDp_j_l)
Precondition: supports(OUT_ARG_DgDp,j,l)==true.
EDerivativeMultiVectorOrientation getMultiVectorOrientation() const
void set_DgDp_properties(int j, int l, const DerivativeProperties &properties)
Teuchos::ScalarTraits< Scalar >::magnitudeType ScalarMag
RCP< Stokhos::ProductEpetraOperator > getLinearOp() const
DerivativeSupport(EDerivativeMultiVectorOrientation mvOrientation)
DerivativeMultiVector< Scalar > getDerivativeMultiVector() const
RCP< const Stokhos::ProductEpetraVector > get_x_dot_mp() const
Precondition: supports(IN_ARG_x_dotmp)==true.
std::string description() const
Derivative(const DerivativeMultiVector< Scalar > &dmv)
const MPDerivativeMultiVector & assert_not_null() const
void _setModelEvalDescription(const std::string &modelEvalDescription)
Abstract interface for finite-dimensional dense vectors.
TEUCHOSCORE_LIB_DLL_EXPORT std::string toString(const EVerbosityLevel verbLevel)
Simple public strict containing properties of a derivative object.
void _setSupports(EInArgsMembers arg, bool supports)
void describe(Teuchos::FancyOStream &, const Teuchos::EVerbosityLevel) const
RCP< T > & operator=(const RCP< T > &r_ptr)
void assertSameSupport(const OutArgs< Scalar > &outArgs) const
Assert that two OutArgs objects have the same support.
EEvalType
The type of an evaluation.
Scalar get_W_x_dot_dot_coeff() const
Precondition: supports(IN_ARG_W_x_dot_dot_coeff)==true.
void set_x_dot(const RCP< const VectorBase< Scalar > > &x_dot)
Precondition: supports(IN_ARG_x_dot)==true.
Base class for all linear operators.
DerivativeSupport(EDerivativeLinearOp)
RCP< Stokhos::ProductEpetraOperator > get_W_mp() const
Precondition: supports(OUT_ARG_W_mp)==true.
DerivativeProperties get_DgDp_properties(int j, int l) const
Return the know properties of DgDp(j,l) (precondition: supports(OUT_ARG_DgDp,j,l)==true).
Derivative(const RCP< LinearOpBase< Scalar > > &lo)
std::string description() const
void set_DgDx_dot_properties(int j, const DerivativeProperties &properties)
bool isFailed() const
Return if the evaluation failed or not.
const RCP< T > & assert_not_null() const
void _set_DgDx_properties(int j, const DerivativeProperties &properties)
void set_g_mp(int j, const RCP< Stokhos::ProductEpetraVector > &g_mp_j)
Precondition: supports(OUT_ARG_g_mp)==true.
DerivativeProperties(EDerivativeLinearity in_linearity, ERankStatus in_rank, bool in_supportsAdjoint)
Base subclass for ModelEvaluator that defines some basic types.
void set_t(ScalarMag t)
Precondition: supports(IN_ARG_t)==true.
void set_x_mp(const RCP< const Stokhos::ProductEpetraVector > &x_mp)
Precondition: supports(IN_ARG_x_mp)==true.
void set_DgDx_dot(int j, const Derivative< Scalar > &DgDx_dot_j)
Precondition: supports(OUT_ARG_DgDx_dot,j)==true.
void assertSameSupport(const InArgs< Scalar > &inArgs) const
Assert that two InArgs objects have the same support.
void set_p(int l, const RCP< const VectorBase< Scalar > > &p_l)
Set p(l) where 0 <= l && l < this->Np().
void setSupports(EOutArgsMembers arg, bool supports=true)
RCP< LinearOpWithSolveBase< Scalar > > get_W() const
Precondition: supports(OUT_ARG_W)==true.
#define TEUCHOS_UNREACHABLE_RETURN(dummyReturnVal)
void _set_DgDp_properties(int j, int l, const DerivativeProperties &properties)
void set_W(const RCP< LinearOpWithSolveBase< Scalar > > &W)
Precondition: supports(OUT_ARG_W)==true.
Scalar get_alpha() const
Precondition: supports(IN_ARG_alpha)==true.
void setFailed() const
Set that the evaluation as a whole failed.
bool supports() const
Determines if an extended output argument of type ObjectType is supported.
RCP< Stokhos::ProductEpetraMultiVector > getMultiVector() const
Scalar get_stage_number() const
Precondition: supports(IN_ARG_stage_number)==true.
std::string description() const
RCP< Stokhos::ProductEpetraVector > get_f_mp() const
Precondition: supports(OUT_ARG_f_mp)==true.
void set_alpha(Scalar alpha)
Precondition: supports(IN_ARG_alpha)==true.
void _set_W_properties(const DerivativeProperties &properties)
Derivative< Scalar > get_DgDx_dot(int j) const
Precondition: supports(OUT_ARG_DgDx_dot,j)==true.
void set_DfDp(int l, const Derivative< Scalar > &DfDp_l)
Precondition: supports(OUT_ARG_DfDp,l)==true.
ModelEvaluatorBase()
constructor
EDerivativeMultiVectorOrientation getOrientation() const
RCP< PreconditionerBase< Scalar > > get_W_prec() const
Precondition: supports(OUT_ARG_W_op)==true.
const Derivative< Scalar > & assert_not_null() const
void set_f_mp(const RCP< Stokhos::ProductEpetraVector > &f_mp)
Precondition: supports(OUT_ARG_f_mp)==true.
std::string description() const
Determines the forms of a general derivative that are supported.
std::string description() const
int Np() const
Return the number of parameter subvectors p(l) supported (Np >= 0).
Scalar get_step_size() const
Precondition: supports(IN_ARG_step_size)==true.
RCP< const VectorBase< Scalar > > get_x_dot_dot() const
Precondition: supports(IN_ARG_x_dot_dot)==true.
DerivativeSupport & plus(EDerivativeLinearOp)
void set_f(const Evaluation< VectorBase< Scalar > > &f)
Precondition: supports(OUT_ARG_f)==true.
void set_beta(Scalar beta)
Precondition: supports(IN_ARG_beta)==true.
void set_DgDx(int j, const Derivative< Scalar > &DgDx_j)
Precondition: supports(OUT_ARG_DgDx,j)==true.
void setModelEvalDescription(const std::string &modelEvalDescription)
Type to embed evaluation accuracy with an RCP-managed object.
void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
std::string modelEvalDescription() const
Simple aggregate class that stores a derivative object as a general linear operator or as a multi-vec...
const DerivativeMultiVector< Scalar > & assert_not_null() const
void set_W_x_dot_dot_coeff(Scalar W_x_dot_dot_coeff)
Precondition: supports(IN_ARG_W_x_dot_dot_coeff)==true.
MPDerivativeMultiVector(const RCP< Stokhos::ProductEpetraMultiVector > &mv, const EDerivativeMultiVectorOrientation orientation=DERIV_MV_BY_COL, const Teuchos::Array< int > ¶mIndexes=Teuchos::Array< int >())
RCP< LinearOpBase< Scalar > > get_W_op() const
Precondition: supports(OUT_ARG_W_op)==true.
bool supports(EDerivativeLinearOp) const
void set_W_op(const RCP< LinearOpBase< Scalar > > &W_op)
Precondition: supports(OUT_ARG_W_op)==true.
EDerivativeMultiVectorOrientation getMultiVectorOrientation() const
DerivativeProperties get_DfDp_properties(int l) const
Return the know properties of DfDp(l) (precondition: supports(OUT_ARG_DfDp,l)==true).
RCP< const VectorBase< Scalar > > get_x() const
Precondition: supports(IN_ARG_x)==true.
void _setModelEvalDescription(const std::string &modelEvalDescription)
const Teuchos::Array< int > & getParamIndexes() const
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)
const MPDerivative & assert_not_null() const
RCP< LinearOpBase< Scalar > > getLinearOp() const
RCP< const VectorBase< Scalar > > get_p(int l) const
Get p(l) where 0 <= l && l < this->Np().
Protected subclass of OutArgs that only ModelEvaluator subclasses can access to set up the selection ...
DerivativeProperties get_W_properties() const
Return the known properties of W (precondition: supports(OUT_ARG_f)==true).
RCP< MultiVectorBase< Scalar > > getMultiVector() const
Evaluation(Teuchos::ENull)
Derivative< Scalar > get_DgDx(int j) const
Precondition: supports(OUT_ARG_DgDx,j)==true.
void reset(const RCP< ObjType > &obj, EEvalType evalType)
Concrete aggregate class for all input arguments computable by a ModelEvaluator subclass object...