vsip_vview_f* vsip_vputattrib_f(vsip_vview_f* v, const vsip_vattr_f *a); vsip_vview_d* vsip_vputattrib_d(vsip_vview_d* v, const vsip_vattr_d *a); vsip_vview_i* vsip_vputattrib_i(vsip_vview_i* v, const vsip_vattr_i *a); vsip_cvview_f* vsip_cvputattrib_f(vsip_cvview_f* v, const vsip_cvattr_f *a); vsip_cvview_d* vsip_cvputattrib_d(vsip_cvview_d* v, const vsip_cvattr_d *a);
This function sets the attributes of the vector view v to the values specified in the structure pointed to by a.
vsip_dvview_p* v: Pointer to the vector view.
const vsip_dvattr_p *a: Pointer to a structure containing the new attributes.
On success, a pointer to the modified vector view is returned.
On error, NULL is returned.
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 }