Thyra Version of the Day
Loading...
Searching...
No Matches
Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar > Class Template Reference

Protected subclass of OutArgs that only ModelEvaluator subclasses can access to set up the selection of supported input arguments. More...

#include <Thyra_ModelEvaluatorBase_decl.hpp>

Inheritance diagram for Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >:

Public Member Functions

 OutArgsSetup ()
 OutArgsSetup (const OutArgs< Scalar > &)
void setModelEvalDescription (const std::string &modelEvalDescription)
void set_Np_Ng (int Np, int Ng)
void setSupports (EOutArgsMembers arg, bool supports=true)
void setSupports (EOutArgsDfDp arg, int l, const DerivativeSupport &)
void setSupports (EOutArgsDgDx_dot arg, int j, const DerivativeSupport &)
void setSupports (EOutArgsDgDx arg, int j, const DerivativeSupport &)
void setSupports (EOutArgsDgDp arg, int j, int l, const DerivativeSupport &)
template<typename ObjectType>
void setSupports (const bool supports=true)
 Set support for specific extended data types.
void set_W_properties (const DerivativeProperties &properties)
void set_DfDp_properties (int l, const DerivativeProperties &properties)
void set_DgDx_dot_properties (int j, const DerivativeProperties &properties)
void set_DgDx_properties (int j, const DerivativeProperties &properties)
void set_DgDp_properties (int j, int l, const DerivativeProperties &properties)
void setSupports (const OutArgs< Scalar > &inputOutArgs)
void setUnsupportsAndRelated (EInArgsMembers arg)
void setUnsupportsAndRelated (EOutArgsMembers arg)
 Must be called after the above function.
Public Member Functions inherited from Thyra::ModelEvaluatorBase::OutArgs< Scalar >
 OutArgs ()
int Np () const
 Return the number of parameter subvectors p(l) supported (Np >= 0).
int Ng () const
 Return the number of axillary response functions g(j)(...) supported (Ng >= 0).
bool supports (EOutArgsMembers arg) const
 Determine if an input argument is supported or not.
const DerivativeSupportsupports (EOutArgsDfDp arg, int l) const
 Determine if DfDp(l) is supported or not, where 0 <= l && l < Np().
const DerivativeSupportsupports (EOutArgsDgDx_dot arg, int j) const
 Determine if DgDx_dot(j) is supported or not, 0 <= j && j < Ng().
const DerivativeSupportsupports (EOutArgsDgDx arg, int j) const
 Determine if DgDx(j) is supported or not, 0 <= j && j < Ng().
const DerivativeSupportsupports (EOutArgsDgDp arg, int j, int l) const
 Determine if DgDp(j,l) is supported or not, 0 <= j && j < Ng() and 0 <= l && l < Np().
void set_f (const Evaluation< VectorBase< Scalar > > &f)
 Precondition: supports(OUT_ARG_f)==true.
Evaluation< VectorBase< Scalar > > get_f () const
 Precondition: supports(OUT_ARG_f)==true.
void set_g (int j, const Evaluation< VectorBase< Scalar > > &g_j)
 Precondition: supports(OUT_ARG_g)==true.
Evaluation< VectorBase< Scalar > > get_g (int j) const
 Precondition: supports(OUT_ARG_g)==true..
void set_W (const RCP< LinearOpWithSolveBase< Scalar > > &W)
 Precondition: supports(OUT_ARG_W)==true.
RCP< LinearOpWithSolveBase< Scalar > > get_W () const
 Precondition: supports(OUT_ARG_W)==true.
template<typename ObjectType>
bool supports () const
 Determines if an extended output argument of type ObjectType is supported.
template<typename ObjectType>
void set (const RCP< const ObjectType > &uo)
 Set an extended output argument of type ObjectType in OutArgs. Precondition: supports()==true.
template<typename ObjectType>
RCP< const ObjectType > get () const
 Get an extended output argument of type ObjectType from OutArgs. Precondition: supports()==true.
void set_f_mp (const RCP< Stokhos::ProductEpetraVector > &f_mp)
 Precondition: supports(OUT_ARG_f_mp)==true.
RCP< Stokhos::ProductEpetraVector > get_f_mp () const
 Precondition: supports(OUT_ARG_f_mp)==true.
void set_g_mp (int j, const RCP< Stokhos::ProductEpetraVector > &g_mp_j)
 Precondition: supports(OUT_ARG_g_mp)==true.
RCP< Stokhos::ProductEpetraVector > get_g_mp (int j) const
 Precondition: supports(OUT_ARG_g_mp)==true..
void set_W_mp (const RCP< Stokhos::ProductEpetraOperator > &W_mp)
 Precondition: supports(OUT_ARG_W_mp)==true.
RCP< Stokhos::ProductEpetraOperator > get_W_mp () const
 Precondition: supports(OUT_ARG_W_mp)==true.
void set_W_op (const RCP< LinearOpBase< Scalar > > &W_op)
 Precondition: supports(OUT_ARG_W_op)==true.
RCP< LinearOpBase< Scalar > > get_W_op () const
 Precondition: supports(OUT_ARG_W_op)==true.
void set_W_prec (const RCP< PreconditionerBase< Scalar > > &W_prec)
 Precondition: supports(OUT_ARG_W_op)==true.
RCP< PreconditionerBase< Scalar > > get_W_prec () const
 Precondition: supports(OUT_ARG_W_op)==true.
DerivativeProperties get_W_properties () const
 Return the known properties of W (precondition: supports(OUT_ARG_f)==true).
void set_DfDp (int l, const Derivative< Scalar > &DfDp_l)
 Precondition: supports(OUT_ARG_DfDp,l)==true.
Derivative< Scalar > get_DfDp (int l) const
 Precondition: supports(OUT_ARG_DfDp,l)==true.
DerivativeProperties get_DfDp_properties (int l) const
 Return the know properties of DfDp(l) (precondition: supports(OUT_ARG_DfDp,l)==true).
void set_DgDx_dot (int j, const Derivative< Scalar > &DgDx_dot_j)
 Precondition: supports(OUT_ARG_DgDx_dot,j)==true.
Derivative< Scalar > get_DgDx_dot (int j) const
 Precondition: supports(OUT_ARG_DgDx_dot,j)==true.
DerivativeProperties get_DgDx_dot_properties (int j) const
 Return the know properties of DgDx_dot(j) (precondition: supports(OUT_ARG_DgDx_dot,j)==true).
void set_DgDx (int j, const Derivative< Scalar > &DgDx_j)
 Precondition: supports(OUT_ARG_DgDx,j)==true.
Derivative< Scalar > get_DgDx (int j) const
 Precondition: supports(OUT_ARG_DgDx,j)==true.
DerivativeProperties get_DgDx_properties (int j) const
 Return the know properties of DgDx(j) (precondition: supports(OUT_ARG_DgDx,j)==true).
void set_DgDp (int j, int l, const Derivative< Scalar > &DgDp_j_l)
 Precondition: supports(OUT_ARG_DgDp,j,l)==true.
Derivative< Scalar > get_DgDp (int j, int l) const
 Precondition: supports(OUT_ARG_DgDp,j,l)==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).
void setArgs (const OutArgs< Scalar > &outArgs, bool ignoreUnsupported=false)
 Set all arguments fron outArgs into *this.
void setFailed () const
 Set that the evaluation as a whole failed.
bool isFailed () const
 Return if the evaluation failed or not.
bool isEmpty () const
void assertSameSupport (const OutArgs< Scalar > &outArgs) const
 Assert that two OutArgs objects have the same support.
std::string modelEvalDescription () const
std::string description () 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.

Additional Inherited Members

Protected Member Functions inherited from Thyra::ModelEvaluatorBase::OutArgs< Scalar >
void _setModelEvalDescription (const std::string &modelEvalDescription)
void _set_Np_Ng (int Np, int Ng)
void _setSupports (EOutArgsMembers arg, bool supports)
template<typename ObjectType>
void _setSupports (const bool supports)
void _setSupports (EOutArgsDfDp arg, int l, const DerivativeSupport &)
void _setSupports (EOutArgsDgDx_dot arg, int j, const DerivativeSupport &)
void _setSupports (EOutArgsDgDx arg, int j, const DerivativeSupport &)
void _setSupports (EOutArgsDgDp arg, int j, int l, const DerivativeSupport &)
void _set_W_properties (const DerivativeProperties &properties)
void _set_DfDp_properties (int l, const DerivativeProperties &properties)
void _set_DgDx_dot_properties (int j, const DerivativeProperties &properties)
void _set_DgDx_properties (int j, const DerivativeProperties &properties)
void _set_DgDp_properties (int j, int l, const DerivativeProperties &properties)
void _setSupports (const OutArgs< Scalar > &inputOutArgs)
void _setUnsupportsAndRelated (EInArgsMembers arg)
void _setUnsupportsAndRelated (EOutArgsMembers arg)

Detailed Description

template<class Scalar>
class Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >

Protected subclass of OutArgs that only ModelEvaluator subclasses can access to set up the selection of supported input arguments.

Objects of this type must be created in overrides of ModelEvaluator::createOutArgs().

Definition at line 1508 of file Thyra_ModelEvaluatorBase_decl.hpp.

Constructor & Destructor Documentation

◆ OutArgsSetup() [1/2]

template<class Scalar>
Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::OutArgsSetup ( )

Definition at line 3526 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ OutArgsSetup() [2/2]

template<class Scalar>
Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::OutArgsSetup ( const OutArgs< Scalar > & inputOutArgs)

Definition at line 3531 of file Thyra_ModelEvaluatorBase_def.hpp.

Member Function Documentation

◆ setModelEvalDescription()

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::setModelEvalDescription ( const std::string & modelEvalDescription)

Definition at line 3539 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ set_Np_Ng()

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::set_Np_Ng ( int Np,
int Ng )

Definition at line 3546 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ setSupports() [1/7]

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::setSupports ( EOutArgsMembers arg,
bool supports = true )

Definition at line 3551 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ setSupports() [2/7]

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::setSupports ( EOutArgsDfDp arg,
int l,
const DerivativeSupport & supports_in )

Definition at line 3558 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ setSupports() [3/7]

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::setSupports ( EOutArgsDgDx_dot arg,
int j,
const DerivativeSupport & supports_in )

Definition at line 3565 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ setSupports() [4/7]

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::setSupports ( EOutArgsDgDx arg,
int j,
const DerivativeSupport & supports_in )

Definition at line 3572 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ setSupports() [5/7]

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::setSupports ( EOutArgsDgDp arg,
int j,
int l,
const DerivativeSupport & supports_in )

Definition at line 3608 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ setSupports() [6/7]

template<class Scalar>
template<typename ObjectType>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::setSupports ( const bool supports = true)

Set support for specific extended data types.

Definition at line 1763 of file Thyra_ModelEvaluatorBase_decl.hpp.

◆ set_W_properties()

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::set_W_properties ( const DerivativeProperties & properties)

Definition at line 3733 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ set_DfDp_properties()

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::set_DfDp_properties ( int l,
const DerivativeProperties & properties )

Definition at line 3740 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ set_DgDx_dot_properties()

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::set_DgDx_dot_properties ( int j,
const DerivativeProperties & properties )

Definition at line 3747 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ set_DgDx_properties()

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::set_DgDx_properties ( int j,
const DerivativeProperties & properties )

Definition at line 3754 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ set_DgDp_properties()

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::set_DgDp_properties ( int j,
int l,
const DerivativeProperties & properties )

Definition at line 3761 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ setSupports() [7/7]

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::setSupports ( const OutArgs< Scalar > & inputOutArgs)

Definition at line 3796 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ setUnsupportsAndRelated() [1/2]

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::setUnsupportsAndRelated ( EInArgsMembers arg)

Definition at line 3803 of file Thyra_ModelEvaluatorBase_def.hpp.

◆ setUnsupportsAndRelated() [2/2]

template<class Scalar>
void Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::setUnsupportsAndRelated ( EOutArgsMembers arg)

Must be called after the above function.

Definition at line 3810 of file Thyra_ModelEvaluatorBase_def.hpp.


The documentation for this class was generated from the following files: