52 #define max(a,b) ( (a) > (b) ? (a) : (b) )
53 #define min(a,b) ( (a) < (b) ? (a) : (b) )
95 if( num_vecs != 2 || ( num_vecs && vecs == NULL ) )
97 if( num_targ_vecs != 0 || ( num_targ_vecs && targ_vecs == NULL ) )
100 vecs[1].sub_dim != vecs[0].sub_dim
120 for( k = 0; k < sub_dim; ++k, v0_val += v0_val_s, v1_val += v1_val_s )
123 alpha_max_ith = ((*v1_val) >= 0) ? 1.0 : (*tau)*(*v0_val)/(-(*v1_val));
125 (*alpha_max) =
min( (*alpha_max), alpha_max_ith );
146 ,
"ROp_fraction_to_zero_boundary"
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_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(* obj_create)(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void **obj)
int RTOp_ROp_fraction_to_zero_boundary_destroy(struct RTOp_RTOp *op)
const struct RTOp_obj_type_vtbl_t * obj_data_vtbl
static int RTOp_ROp_fraction_to_zero_boundary_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)
static int RTOp_ROp_fraction_to_zero_boundary_reduct_obj_reinit(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_ReductTarget reduct_obj)
#define RTOp_ERR_INCOMPATIBLE_VECS
const struct RTOp_RTOp_vtbl_t RTOp_ROp_fraction_to_zero_boundary_vtbl
const RTOp_value_type * values
RTOp_value_type RTOp_ROp_fraction_to_zero_boundary_val(RTOp_ReductTarget reduct_obj)
#define RTOp_ERR_INVALID_NUM_VECS
int(* obj_free)(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void **obj)
int RTOp_ROp_fraction_to_zero_boundary_init(RTOp_value_type tau, struct RTOp_RTOp *op)
const struct RTOp_RTOp_vtbl_t * vtbl
int RTOp_ROp_fraction_to_zero_boundary_construct(RTOp_value_type tau, struct RTOp_RTOp *op)
#define RTOp_ERR_INVALID_NUM_TARG_VECS
const struct RTOp_obj_type_vtbl_t RTOp_obj_value_vtbl
Teuchos_Ordinal RTOp_index_type