99 assert( num_values == 2 );
100 assert( num_indexes == 0 );
101 assert( num_chars == 0 );
103 value_data[0] = bnd->
l;
104 value_data[1] = bnd->
u;
122 assert( num_values == 2 );
123 assert( num_indexes == 0 );
124 assert( num_chars == 0 );
125 if(*obj_data == NULL)
128 bnd->
l = value_data[0];
129 bnd->
u = value_data[1];
168 if( num_vecs != 0 || vecs != NULL )
170 if( num_targ_vecs != 1 || targ_vecs == NULL )
174 z_sub_dim = targ_vecs[0].
sub_dim;
175 z_val = targ_vecs[0].
values;
182 for( k = 0; k < z_sub_dim; ++k, z_val += z_val_s )
int RTOp_TOp_random_vector_set_bounds(RTOp_value_type lbnd, RTOp_value_type ubnd, struct RTOp_RTOp *op)
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
static int extract_op_state(const struct RTOp_obj_type_vtbl_t *vtbl, const void *dummy, void *obj_data, int num_values, RTOp_value_type value_data[], int num_indexes, RTOp_index_type index_data[], int num_chars, RTOp_char_type char_data[])
static int load_op_state(const struct RTOp_obj_type_vtbl_t *vtbl, const void *dummy, int num_values, const RTOp_value_type value_data[], int num_indexes, const RTOp_index_type index_data[], int num_chars, const RTOp_char_type char_data[], void **obj_data)
#define RTOp_ERR_INVALID_NUM_VECS
const struct RTOp_obj_type_vtbl_t RTOp_obj_null_vtbl
static int op_create(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, RTOp_ReductTarget *obj)
int RTOp_TOp_random_vector_destroy(struct RTOp_RTOp *op)
static int RTOp_TOp_random_vector_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 targ_obj)
const struct RTOp_RTOp_vtbl_t * vtbl
const struct RTOp_RTOp_vtbl_t RTOp_TOp_random_vector_vtbl
int RTOp_TOp_random_vector_construct(RTOp_value_type lbnd, RTOp_value_type ubnd, struct RTOp_RTOp *op)
static struct RTOp_obj_type_vtbl_t instance_obj_vtbl
int RTOp_obj_free_free(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void **obj)
static int get_op_type_num_entries(const struct RTOp_obj_type_vtbl_t *vtbl, const void *obj_data, int *num_values, int *num_indexes, int *num_chars)
#define RTOp_ERR_INVALID_NUM_TARG_VECS
Teuchos_Ordinal RTOp_index_type