Thyra
Version of the Day
|
Default base class for concrete model evaluators. More...
#include <Thyra_ModelEvaluatorDefaultBase.hpp>
Protected Member Functions | |
ModelEvaluatorDefaultBase () | |
Related Functions | |
(Note that these are not member functions.) | |
template<class Scalar > | |
RCP < ModelEvaluatorBase::InArgs < Scalar > > | clone (const ModelEvaluatorBase::InArgs< Scalar > &inArgs) |
Create a clone of an InArgs object. More... | |
template<class Scalar > | |
ModelEvaluatorBase::Derivative < Scalar > | derivativeGradient (const RCP< MultiVectorBase< Scalar > > &grad) |
template<class Scalar > | |
ModelEvaluatorBase::DerivativeMultiVector < Scalar > | create_DfDp_mv (const ModelEvaluator< Scalar > &model, int l, ModelEvaluatorBase::EDerivativeMultiVectorOrientation orientation) |
template<class Scalar > | |
ModelEvaluatorBase::DerivativeMultiVector < Scalar > | create_DgDx_dot_mv (const ModelEvaluator< Scalar > &model, int j, ModelEvaluatorBase::EDerivativeMultiVectorOrientation orientation) |
template<class Scalar > | |
ModelEvaluatorBase::DerivativeMultiVector < Scalar > | create_DgDx_mv (const ModelEvaluator< Scalar > &model, int j, ModelEvaluatorBase::EDerivativeMultiVectorOrientation orientation) |
template<class Scalar > | |
ModelEvaluatorBase::DerivativeMultiVector < Scalar > | create_DgDp_mv (const ModelEvaluator< Scalar > &model, int j, int l, ModelEvaluatorBase::EDerivativeMultiVectorOrientation orientation) |
template<class Scalar > | |
ModelEvaluatorBase::DerivativeMultiVector < Scalar > | get_dmv (const ModelEvaluatorBase::Derivative< Scalar > &deriv, const std::string &derivName) |
template<class Scalar > | |
RCP< MultiVectorBase< Scalar > > | get_mv (const ModelEvaluatorBase::Derivative< Scalar > &deriv, const std::string &derivName, ModelEvaluatorBase::EDerivativeMultiVectorOrientation orientation) |
template<class Scalar > | |
void | assertDerivSpaces (const std::string &modelEvalDescription, const ModelEvaluatorBase::Derivative< Scalar > &deriv, const std::string &deriv_name, const VectorSpaceBase< Scalar > &fnc_space, const std::string &fnc_space_name, const VectorSpaceBase< Scalar > &var_space, const std::string &var_space_name) |
Assert that that Thyra objects imbedded in a Derivative object matches its function and variable spaces. More... | |
template<class Scalar > | |
void | assertInArgsOutArgsSetup (const std::string &modelEvalDescription, const ModelEvaluatorBase::InArgs< Scalar > &inArgs, const ModelEvaluatorBase::OutArgs< Scalar > &outArgs) |
Assert that an InArgs and OutArgs object are setup consistently. More... | |
template<class Scalar > | |
void | assertInArgsEvalObjects (const ModelEvaluator< Scalar > &model, const ModelEvaluatorBase::InArgs< Scalar > &inArgs) |
Assert that the objects in an InArgs object match a given model. More... | |
template<class Scalar > | |
void | assertOutArgsEvalObjects (const ModelEvaluator< Scalar > &model, const ModelEvaluatorBase::OutArgs< Scalar > &outArgs, const ModelEvaluatorBase::InArgs< Scalar > *inArgs=0) |
Assert that the objects in an OutArgs object match a given model. More... | |
Related Functions inherited from Thyra::ModelEvaluatorBase | |
std::string | toString (ModelEvaluatorBase::EInArgsMembers) |
std::string | toString (ModelEvaluatorBase::EOutArgsMembers) |
std::string | toString (ModelEvaluatorBase::EDerivativeMultiVectorOrientation orientation) |
ModelEvaluatorBase::EDerivativeMultiVectorOrientation | getOtherDerivativeMultiVectorOrientation (ModelEvaluatorBase::EDerivativeMultiVectorOrientation orientation) |
Overridden from ModelEvaluator | |
int | Np () const |
int | Ng () const |
RCP< LinearOpBase< Scalar > > | create_DfDp_op (int l) const |
RCP< LinearOpBase< Scalar > > | create_DgDx_dot_op (int j) const |
RCP< LinearOpBase< Scalar > > | create_DgDx_op (int j) const |
RCP< LinearOpBase< Scalar > > | create_DgDp_op (int j, int l) const |
RCP< LinearOpWithSolveBase < Scalar > > | create_W () const |
ModelEvaluatorBase::OutArgs < Scalar > | createOutArgs () const |
void | evalModel (const ModelEvaluatorBase::InArgs< Scalar > &inArgs, const ModelEvaluatorBase::OutArgs< Scalar > &outArgs) const |
virtual RCP< const VectorSpaceBase< Scalar > > | get_f_multiplier_space () const |
virtual RCP< const VectorSpaceBase< Scalar > > | get_g_multiplier_space (int j) const |
virtual RCP< LinearOpBase < Scalar > > | create_hess_f_xx () const |
virtual RCP< LinearOpBase < Scalar > > | create_hess_f_xp (int l) const |
virtual RCP< LinearOpBase < Scalar > > | create_hess_f_pp (int l1, int l2) const |
virtual RCP< LinearOpBase < Scalar > > | create_hess_g_xx (int j) const |
virtual RCP< LinearOpBase < Scalar > > | create_hess_g_xp (int j, int l) const |
virtual RCP< LinearOpBase < Scalar > > | create_hess_g_pp (int j, int l1, int l2) const |
Setup functions called by subclasses | |
void | initializeDefaultBase () |
Function called by subclasses to fully initialize this object on any important change. More... | |
void | resetDefaultBase () |
Sets the the DefaultBase to an uninitialized state, forcing lazy initialization when needed. More... | |
Default base class for concrete model evaluators.
The primary purposes of this base class are to:
Provide default implementations for other forms of derivatives in ModelEvaluatorBase::Derivative
. For example, if a multi-vector form of a derivative (i.e. my column DhDy
or by row DhDy^T
) is provided then the other form will be provided assuming the range space has in-core vectors. Also, if any multi-vector form of a general derivative is provided, a LinearOpBase
version is automatically supported.
Provide a default implementation for computing the LOWSB
from W
given the LOB
-only form W_op
given a LOWSFB
object W_factory
supplied by the subclass. If the subclass wants to take this over, then it should override create_W()
.
Assert (in debug mode) that the underlying model has been set up correctly.
ToDo: Finish Documentation!
Definition at line 188 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
protected |
Definition at line 1029 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Reimplemented in Thyra::DiagonalQuadraticResponseOnlyModelEvaluator< Scalar >.
Definition at line 401 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Reimplemented in Thyra::DiagonalQuadraticResponseOnlyModelEvaluator< Scalar >.
Definition at line 409 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Definition at line 429 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Definition at line 450 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Definition at line 471 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Definition at line 492 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Reimplemented in Thyra::ModelEvaluatorDelegatorBase< Scalar >, Thyra::DefaultStateEliminationModelEvaluator< Scalar >, and Thyra::ResponseOnlyModelEvaluatorBase< Scalar >.
Definition at line 418 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Definition at line 514 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Definition at line 522 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Reimplemented in Thyra::ModelEvaluatorDelegatorBase< Scalar >.
Definition at line 971 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Reimplemented in Thyra::ModelEvaluatorDelegatorBase< Scalar >.
Definition at line 978 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Definition at line 985 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Definition at line 992 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Definition at line 999 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Definition at line 1006 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Definition at line 1013 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
virtual |
Implements Thyra::ModelEvaluator< Scalar >.
Definition at line 1020 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
protected |
Function called by subclasses to fully initialize this object on any important change.
Note: This class will automatically call this function the first time to set things up and does not need to be called by the client the first time. However, if the state of the object changes, then this function should be called to reset the state of this object's implemention!
Definition at line 741 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
protected |
Sets the the DefaultBase to an uninitialized state, forcing lazy initialization when needed.
This is used when a derived class changes state and requires lazy initialization.
Definition at line 885 of file Thyra_ModelEvaluatorDefaultBase.hpp.
|
related |
Create a clone of an InArgs object.
Warning! This function only creates a shallow copy of the underlying input objects. Therefore, be careful if you try to modify any of these.
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
Assert that that Thyra objects imbedded in a Derivative object matches its function and variable spaces.
|
related |
Assert that an InArgs and OutArgs object are setup consistently.
|
related |
Assert that the objects in an InArgs object match a given model.
|
related |
Assert that the objects in an OutArgs object match a given model.