52 #define MY_MAX(a,b) a > b ? a : b
73 if( num_targ_vecs != 0 )
91 for( k = 0; k < sub_dim; ++k, v0_val += v0_val_s ) {
92 *norm += fabs(*v0_val);
143 if( num_targ_vecs != 0 )
161 for( k = 0; k < sub_dim; ++k, v0_val += v0_val_s )
162 *norm += (*v0_val)*(*v0_val);
212 if( num_targ_vecs != 0 )
230 for( k = 0; k < sub_dim; ++k, v0_val += v0_val_s )
static int RTOp_ROp_norms_apply_op_norm_1(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 targ_obj)
int RTOp_ROp_norm_inf_construct(struct RTOp_RTOp *op)
RTOp_value_type RTOp_ROp_norm_2_val(RTOp_ReductTarget targ_obj)
int RTOp_reduct_sum_value(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_ReductTarget in_targ_obj, RTOp_ReductTarget inout_targ_obj)
static int RTOp_ROp_norms_apply_op_norm_inf(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 targ_obj)
const RTOp_value_type * values
int RTOp_ROp_norm_2_construct(struct RTOp_RTOp *op)
int RTOp_get_reduct_max_value_op(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_reduct_op_func_ptr_t *reduct_op_func_ptr)
#define RTOp_ERR_INVALID_NUM_VECS
static int RTOp_ROp_norms_apply_op_norm_2(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 targ_obj)
const struct RTOp_obj_type_vtbl_t RTOp_obj_null_vtbl
void sqrt(DVectorSlice *vs_lhs, const DVectorSlice &vs_rhs)
vs_lhs = sqrt(vs_rhs)
RTOp_value_type RTOp_ROp_norm_1_val(RTOp_ReductTarget targ_obj)
const struct RTOp_RTOp_vtbl_t * vtbl
int RTOp_reduct_max_value(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_ReductTarget in_targ_obj, RTOp_ReductTarget inout_targ_obj)
RTOp_value_type RTOp_ROp_norm_inf_val(RTOp_ReductTarget targ_obj)
const struct RTOp_RTOp_vtbl_t RTOp_ROp_norm_inf_vtbl
int RTOp_ROp_norm_1_construct(struct RTOp_RTOp *op)
int RTOp_ROp_norm_destroy(struct RTOp_RTOp *op)
#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_norm_2_vtbl
int RTOp_get_reduct_sum_value_op(const struct RTOp_RTOp_vtbl_t *vtbl, const void *obj_data, RTOp_reduct_op_func_ptr_t *reduct_op_func_ptr)
const struct RTOp_RTOp_vtbl_t RTOp_ROp_norm_1_vtbl
Teuchos_Ordinal RTOp_index_type
#define RTOp_REDUCT_OBJ_NULL