vsip_vview_f* vsip_vputoffset_f(vsip_vview_f* v, vsip_offset o); vsip_vview_d* vsip_vputoffset_d(vsip_vview_d* v, vsip_offset o); vsip_cvview_f* vsip_cvputoffset_f(vsip_cvview_f* v, vsip_offset o); vsip_cvview_d* vsip_cvputoffset_d(vsip_cvview_d* v, vsip_offset o);
This function sets the offset within the data block for the vector view v to the specified value o.
vsip_dvview_p* v: Pointer to the vector view.
vsip_offset o: The new offset within the data block.
On success, a pointer to the modified vector view is returned.
On error, NULL is returned.
vsip_vview_f *vector_view; vsip_offset new_offset = 5; // Assuming vector_view has been properly initialized vector_view = vsip_vputoffset_f(vector_view, new_offset); if (vector_view == NULL) { // Handle error }