69 ptrdiff_t v0_val_s = 0, v1_val_s = 0;
82 for( k = 0; k < sub_dim; ++k, v0_val += v0_val_s, v1_val += v1_val_s ) {
83 alpha_tmp = (beta - (*v0_val))/(*v1_val);
84 *alpha = ( (0 <= alpha_tmp && alpha_tmp < *alpha) ? alpha_tmp : *alpha );
int RTOp_get_reduct_min_value_op(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_reduct_op_func_ptr_t *reduct_op_func_ptr)
int RTOp_ROp_max_step_set_beta(RTOp_value_type beta, struct RTOp_RTOp *op)
int RTOp_reduct_min_value(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_ReductTarget in_targ_obj, RTOp_ReductTarget inout_targ_obj)
int RTOp_ROp_max_step_construct(RTOp_value_type beta, struct RTOp_RTOp *op)
RTOp_value_type RTOp_ROp_max_step_val(RTOp_ReductTarget reduct_obj)
int(* obj_create)(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void **obj)
const struct RTOp_obj_type_vtbl_t * obj_data_vtbl
#define RTOp_ERR_INCOMPATIBLE_VECS
static int RTOp_ROp_max_step_reduct_obj_reinit(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_ReductTarget reduct_obj)
const RTOp_value_type * values
int RTOp_ROp_max_step_destroy(struct RTOp_RTOp *op)
#define RTOp_ERR_INVALID_NUM_VECS
int(* obj_free)(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void **obj)
RTOp_value_type RTOp_ROp_max_step_inf
static int ROp_max_step_apply_op(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, const int num_vecs, const struct RTOp_SubVector vecs[], const int num_targ_vecs, const struct RTOp_MutableSubVector targ_vecs[], RTOp_ReductTarget reduct_obj)
const struct RTOp_RTOp_vtbl_t * vtbl
#define RTOp_ERR_INVALID_NUM_TARG_VECS
const struct RTOp_obj_type_vtbl_t RTOp_obj_value_vtbl
const struct RTOp_RTOp_vtbl_t RTOp_ROp_max_step_vtbl
Teuchos_Ordinal RTOp_index_type