00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef CHECK_DECOMPOSITION_FROM_R_PY_STEP_H
00030 #define CHECK_DECOMPOSITION_FROM_R_PY_STEP_H
00031
00032 #include "MoochoPack_NewDecompositionSelection_Strategy.hpp"
00033 #include "IterationPack_AlgorithmStep.hpp"
00034 #include "Teuchos_StandardCompositionMacros.hpp"
00035 #include "Teuchos_StandardMemberCompositionMacros.hpp"
00036
00037 namespace MoochoPack {
00038
00060 class CheckDecompositionFromRPy_Step
00061 : public IterationPack::AlgorithmStep
00062 {
00063 public:
00064
00066 STANDARD_COMPOSITION_MEMBERS( NewDecompositionSelection_Strategy, new_decomp_strategy );
00067
00071 STANDARD_MEMBER_COMPOSITION_MEMBERS( value_type, max_decomposition_cond_change_frac );
00072
00074 CheckDecompositionFromRPy_Step(
00075 const new_decomp_strategy_ptr_t &new_decomp_strategy
00076 ,value_type max_decomposition_cond_change_frac = 1e+4
00077 );
00078
00080 void reset();
00081
00085 bool do_step(Algorithm& algo, poss_type step_poss, IterationPack::EDoStepType type
00086 , poss_type assoc_step_poss);
00088 void print_step( const Algorithm& algo, poss_type step_poss, IterationPack::EDoStepType type
00089 , poss_type assoc_step_poss, std::ostream& out, const std::string& leading_str ) const;
00091
00092 private:
00093
00094 value_type beta_min_;
00095
00096
00097 CheckDecompositionFromRPy_Step();
00098
00099 };
00100
00101 }
00102
00103 #endif // CHECK_DECOMPOSITION_FROM_R_PY_STEP_H