Thyra Package Browser (Single Doxygen Collection) Version of the Day
Modules | Functions
Miscellaneous Support Code for Developing Thyra Operator/Vector Subclass Implementations
Development of Concrete Thyra Operator/Vector Subclass Implementations

This is some basic C++ code to support the development of Thyra subclass implementations. More...

Collaboration diagram for Miscellaneous Support Code for Developing Thyra Operator/Vector Subclass Implementations:

Modules

 Internal Helper Code not meant for General Use
 

Some support code that is not meant for general programmers to access.


Functions

template<class Scalar >
void Thyra::apply_op_validate_input (const std::string &func_name, const VectorSpaceBase< Scalar > &space, const RTOpPack::RTOpT< Scalar > &op, const ArrayView< const Ptr< const VectorBase< Scalar > > > &vecs, const ArrayView< const Ptr< VectorBase< Scalar > > > &targ_vecs, const Ptr< RTOpPack::ReductTarget > &reduct_obj, const Ordinal global_offset)
 Validate the inputs to VectorBase::applyOp().
template<class Scalar >
void Thyra::apply_op_validate_input (const std::string &func_name, const VectorSpaceBase< Scalar > &domain, const VectorSpaceBase< Scalar > &range, const RTOpPack::RTOpT< Scalar > &primary_op, const ArrayView< const Ptr< const MultiVectorBase< Scalar > > > &multi_vecs, const ArrayView< const Ptr< MultiVectorBase< Scalar > > > &targ_multi_vecs, const ArrayView< const Ptr< RTOpPack::ReductTarget > > &reduct_objs, const Ordinal primary_global_offset)
 Validate the inputs to MultiVectorBase::applyOp().

Detailed Description

This is some basic C++ code to support the development of Thyra subclass implementations.


Function Documentation

template<class Scalar >
void Thyra::apply_op_validate_input ( const std::string &  func_name,
const VectorSpaceBase< Scalar > &  space,
const RTOpPack::RTOpT< Scalar > &  op,
const ArrayView< const Ptr< const VectorBase< Scalar > > > &  vecs,
const ArrayView< const Ptr< VectorBase< Scalar > > > &  targ_vecs,
const Ptr< RTOpPack::ReductTarget > &  reduct_obj,
const Ordinal  global_offset 
)

Validate the inputs to VectorBase::applyOp().

Throws an exception with a nice error message if one of the preconditions are not met.

Definition at line 41 of file Thyra_apply_op_helper_def.hpp.

References TEST_FOR_EXCEPTION, and THYRA_ASSERT_VEC_SPACES.

Referenced by Thyra::SpmdVectorBase< Scalar >::applyOpImplWithComm(), and Thyra::SpmdMultiVectorBase< Scalar >::mvMultiReductApplyOpImpl().

template<class Scalar >
void Thyra::apply_op_validate_input ( const std::string &  func_name,
const VectorSpaceBase< Scalar > &  domain,
const VectorSpaceBase< Scalar > &  range,
const RTOpPack::RTOpT< Scalar > &  primary_op,
const ArrayView< const Ptr< const MultiVectorBase< Scalar > > > &  multi_vecs,
const ArrayView< const Ptr< MultiVectorBase< Scalar > > > &  targ_multi_vecs,
const ArrayView< const Ptr< RTOpPack::ReductTarget > > &  reduct_objs,
const Ordinal  primary_global_offset 
)

Validate the inputs to MultiVectorBase::applyOp().

Throws an exception with a nice error message if one of the preconditions are not met.

Definition at line 65 of file Thyra_apply_op_helper_def.hpp.

References Teuchos::as(), TEST_FOR_EXCEPTION, and THYRA_ASSERT_VEC_SPACES.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines