Adelsbach/VSIPL
Core Programming Reference Guide
DD-00016-015
Core

1.3.10 vsip_dvputattrib_p - Set the Attributes of a Vector View

typedef struct _vsip_vattr_f { 
  vsip_offset   offset; 
  vsip_stride   stride; 
  vsip_length   length; 
  vsip_block_f *block; 
} vsip_vattr_f; 
/* same for other datatypes with the respective vsip_dblock_p */ 
 
vsip_vview_f* vsip_vputattrib_f(vsip_vview_f* v, const vsip_vattr_f *a); 
vsip_vview_i* vsip_vputattrib_i(vsip_vview_i* v, const vsip_vattr_i *a); 
vsip_vview_bl* vsip_vputattrib_bl(vsip_vview_bl* v, const vsip_vattr_bl *a); 
vsip_vview_vi* vsip_vputattrib_vi(vsip_vview_vi* v, const vsip_vattr_vi *a); 
vsip_vview_mi* vsip_vputattrib_mi(vsip_vview_mi* v, const vsip_vattr_mi *a); 
vsip_cvview_f* vsip_cvputattrib_f(vsip_cvview_f* v, const vsip_cvattr_f *a);
Description

This function sets the attributes of the vector view v to the values specified in the structure pointed to by a.

Parameters
Return Value
Example

vsip_vview_f *vector_view; 
vsip_vattr_f new_attributes; 
 
// Assuming vector_view has been properly initialized and new_attributes is set 
vector_view = vsip_vputattrib_f(vector_view, &new_attributes); 
 
if (vector_view == NULL) { 
    // Handle error 
}