MOOCHO (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RTOpPack_initRTOpStdOpsLibCpp.cpp
Go to the documentation of this file.
1 #if 0
2 
3 // @HEADER
4 // ***********************************************************************
5 //
6 // Moocho: Multi-functional Object-Oriented arCHitecture for Optimization
7 // Copyright (2003) Sandia Corporation
8 //
9 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
10 // license for use of this work by or on behalf of the U.S. Government.
11 //
12 // Redistribution and use in source and binary forms, with or without
13 // modification, are permitted provided that the following conditions are
14 // met:
15 //
16 // 1. Redistributions of source code must retain the above copyright
17 // notice, this list of conditions and the following disclaimer.
18 //
19 // 2. Redistributions in binary form must reproduce the above copyright
20 // notice, this list of conditions and the following disclaimer in the
21 // documentation and/or other materials provided with the distribution.
22 //
23 // 3. Neither the name of the Corporation nor the names of the
24 // contributors may be used to endorse or promote products derived from
25 // this software without specific prior written permission.
26 //
27 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
28 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
30 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
31 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
32 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
33 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
34 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
35 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
36 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
37 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 //
39 // Questions? Contact Roscoe A. Bartlett (rabartl@sandia.gov)
40 //
41 // ***********************************************************************
42 // @HEADER
43 
44 // ////////////////////////////////////////////////
45 // initRTOpStdOpsLibCpp.cpp
46 
51 #include "RTOp_ROp_max_rel_step.h"
52 #include "RTOp_TOp_ele_wise_sqrt.h"
54 #include "RTOp_ROp_max_step.h"
56 #include "RTOp_ROp_dot_prod.h"
57 #include "RTOp_ROp_norms.h"
59 #include "RTOp_ROp_find_nan_inf.h"
60 #include "RTOp_ROp_num_bounded.h"
63 #include "RTOp_ROp_num_nonzeros.h"
66 #include "RTOp_ROp_sum.h"
67 #include "RTOp_ROp_sum_abs.h"
69 #include "RTOp_ROp_get_ele.h"
70 #include "RTOp_TOp_add_scalar.h"
71 #include "RTOp_TOp_random_vector.h"
73 #include "RTOp_TOp_assign_scalar.h"
74 #include "RTOp_TOp_scale_vector.h"
77 #include "RTOp_TOp_set_ele.h"
78 #include "RTOp_ROp_max_abs_ele.h"
79 #include "RTOp_TOp_axpy.h"
81 #include "RTOp_ROp_max.h"
83 #include "RTOp_TOp_sign.h"
87 #include "RTOp_TOp_ele_wise_prod.h"
88 
89 namespace {
90 
91 void add_op_factory(RTOpPack::RTOpServer<RTOp_value_type> *op_server, const RTOp_RTOp_vtbl_t &op_vtbl )
92 {
93  namespace mmp = MemMngPack;
94  namespace rtop = RTOpPack;
96  op_server->add_op_factory(
98  new OpFactory_t(
99  rtop::RTOpCPostMod(&op_vtbl)
100  ,Teuchos::AllocatorNew<rtop::RTOpC>() // RAB: 2003/10/03: MipsPro needs this *$&%^#&!!!
101  )
102  )
103  );
104 }
105 
106 } // namespace
107 
108 void RTOpPack::initRTOpStdOpsLibCpp( RTOpPack::RTOpServer<RTOp_value_type> *op_server )
109 {
110  namespace mmp = MemMngPack;
112 
113  add_op_factory(op_server,RTOp_ROp_combined_nu_comp_err_vtbl);
114  add_op_factory(op_server,RTOp_ROp_combined_nu_comp_err_one_only_vtbl);
115  add_op_factory(op_server,RTOp_ROp_comp_err_with_mu_vtbl);
116  add_op_factory(op_server,RTOp_ROp_dot_prod_vtbl);
117  add_op_factory(op_server,RTOp_ROp_find_nan_inf_vtbl);
118  add_op_factory(op_server,RTOp_ROp_fraction_to_boundary_vtbl);
119  add_op_factory(op_server,RTOp_ROp_fraction_to_zero_boundary_vtbl);
120  add_op_factory(op_server,RTOp_ROp_get_ele_vtbl);
121  add_op_factory(op_server,RTOp_ROp_get_sub_vector_vtbl);
122  add_op_factory(op_server,RTOp_ROp_log_bound_barrier_vtbl);
123  add_op_factory(op_server,RTOp_ROp_max_abs_ele_vtbl);
124  add_op_factory(op_server,RTOp_ROp_max_vtbl);
125  add_op_factory(op_server,RTOp_ROp_max_inequ_viol_vtbl);
126  add_op_factory(op_server,RTOp_ROp_max_near_feas_step_vtbl);
127  add_op_factory(op_server,RTOp_ROp_max_rel_step_vtbl);
128  add_op_factory(op_server,RTOp_ROp_max_step_vtbl);
129  add_op_factory(op_server,RTOp_ROp_norm_1_vtbl);
130  add_op_factory(op_server,RTOp_ROp_norm_2_vtbl);
131  add_op_factory(op_server,RTOp_ROp_norm_inf_vtbl);
132  add_op_factory(op_server,RTOp_ROp_num_bounded_vtbl);
133  add_op_factory(op_server,RTOp_ROp_num_nonzeros_vtbl);
134  add_op_factory(op_server,RTOp_ROp_sum_vtbl);
135  add_op_factory(op_server,RTOp_ROp_sum_abs_vtbl);
136  add_op_factory(op_server,RTOp_TOp_add_scalar_vtbl);
137  add_op_factory(op_server,RTOp_TOp_assign_scalar_vtbl);
138  add_op_factory(op_server,RTOp_TOp_assign_vectors_vtbl);
139  add_op_factory(op_server,RTOp_TOp_axpy_vtbl);
140  add_op_factory(op_server,RTOp_TOp_Correct_Multipliers_vtbl);
141  add_op_factory(op_server,RTOp_TOp_ele_wise_divide_vtbl);
142  add_op_factory(op_server,RTOp_TOp_ele_wise_prod_vtbl);
143  add_op_factory(op_server,RTOp_TOp_ele_wise_sqrt_vtbl);
144  add_op_factory(op_server,RTOp_TOp_force_in_bounds_vtbl);
145  add_op_factory(op_server,RTOp_TOp_force_in_bounds_buffer_vtbl);
146  add_op_factory(op_server,RTOp_TOp_inv_of_difference_vtbl);
147  add_op_factory(op_server,RTOp_TOp_max_abs_vec_scalar_vtbl);
148  add_op_factory(op_server,RTOp_TOp_max_vec_scalar_vtbl);
149  add_op_factory(op_server,RTOp_TOp_multiplier_step_vtbl);
150  add_op_factory(op_server,RTOp_TOp_random_vector_vtbl);
151  add_op_factory(op_server,RTOp_TOp_scale_vector_vtbl);
152  add_op_factory(op_server,RTOp_TOp_set_ele_vtbl);
153  add_op_factory(op_server,RTOp_TOp_set_sub_vector_vtbl);
154  add_op_factory(op_server,RTOp_TOp_sign_vtbl);
155 }
156 
157 #endif // 0
const struct RTOp_RTOp_vtbl_t RTOp_ROp_max_near_feas_step_vtbl
void initRTOpStdOpsLibCpp(RTOpPack::RTOpServer< RTOp_value_type > *op_server)
Initialize an RTOpPack::RTOpServer object for all of the operators defined in this library...
const struct RTOp_RTOp_vtbl_t RTOp_ROp_combined_nu_comp_err_one_only_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_dot_prod_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_max_vtbl
Definition: RTOp_ROp_max.c:129
const struct RTOp_RTOp_vtbl_t RTOp_TOp_set_sub_vector_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_fraction_to_boundary_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_max_vec_scalar_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_max_rel_step_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_find_nan_inf_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_ele_wise_divide_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_comp_err_with_mu_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_force_in_bounds_buffer_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_sum_vtbl
Definition: RTOp_ROp_sum.c:96
const struct RTOp_RTOp_vtbl_t RTOp_TOp_inv_of_difference_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_fraction_to_zero_boundary_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_force_in_bounds_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_max_inequ_viol_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_ele_wise_prod_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_get_sub_vector_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_get_ele_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_axpy_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_combined_nu_comp_err_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_sign_vtbl
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
const struct RTOp_RTOp_vtbl_t RTOp_ROp_num_nonzeros_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_multiplier_step_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_assign_scalar_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_set_ele_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_Correct_Multipliers_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_log_bound_barrier_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_add_scalar_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_max_abs_ele_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_sum_abs_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_random_vector_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_scale_vector_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_num_bounded_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_max_abs_vec_scalar_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_norm_inf_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_ele_wise_sqrt_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_assign_vectors_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_max_step_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_norm_2_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_norm_1_vtbl