52 #define max(a,b) ( (a) > (b) ? (a) : (b) )
53 #define min(a,b) ( (a) < (b) ? (a) : (b) )
84 if( num_vecs != 0 || ( num_vecs && vecs == NULL ) )
86 if( num_targ_vecs != 1 || ( num_targ_vecs && targ_vecs == NULL ) )
95 z0_val = targ_vecs[0].
values;
101 for( k = 0; k < sub_dim; ++k, z0_val += z0_val_s )
104 (*z0_val) =
max((*z0_val),(*min_ele));
115 ,
"TOp_max_vec_scalar"
146 *ptr_min_ele = min_ele;
const struct RTOp_RTOp_vtbl_t RTOp_TOp_max_vec_scalar_vtbl
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_INVALID_NUM_VECS
int(* obj_free)(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void **obj)
int RTOp_TOp_max_vec_scalar_construct(RTOp_value_type min_ele, struct RTOp_RTOp *op)
const struct RTOp_obj_type_vtbl_t RTOp_obj_null_vtbl
static int RTOp_TOp_max_vec_scalar_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
int RTOp_TOp_max_vec_scalar_destroy(struct RTOp_RTOp *op)
#define RTOp_ERR_INVALID_NUM_TARG_VECS
const struct RTOp_obj_type_vtbl_t RTOp_obj_value_vtbl
int RTOp_TOp_max_vec_scalar_init(RTOp_value_type min_ele, struct RTOp_RTOp *op)
Teuchos_Ordinal RTOp_index_type