77 if( num_vecs != 1 || ( num_vecs && vecs == NULL ) )
79 if( num_targ_vecs != 1 || ( num_targ_vecs && targ_vecs == NULL ) )
82 targ_vecs[0].sub_dim != vecs[0].sub_dim
92 z0_val = targ_vecs[0].
values;
102 for( k = 0; k < sub_dim; ++k, v0_val += v0_val_s, z0_val += z0_val_s )
105 (*z0_val) = ( (*v0_val) == 0.0 ? 0.0 : ( (*v0_val) < 0.0 ? -1.0 : +1.0 ) );
static int RTOp_TOp_sign_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)
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
const RTOp_value_type * values
int RTOp_TOp_sign_destroy(struct RTOp_RTOp *op)
const struct RTOp_RTOp_vtbl_t RTOp_TOp_sign_vtbl
#define RTOp_ERR_INVALID_NUM_VECS
int(* obj_free)(const struct RTOp_obj_type_vtbl_t *vtbl, const void *instance_data, void **obj)
const struct RTOp_obj_type_vtbl_t RTOp_obj_null_vtbl
const struct RTOp_RTOp_vtbl_t * vtbl
int RTOp_TOp_sign_construct(struct RTOp_RTOp *op)
#define RTOp_ERR_INVALID_NUM_TARG_VECS
Teuchos_Ordinal RTOp_index_type