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 */ void vsip_vgetattrib_f(const vsip_vview_f* v, vsip_vattr_f *a); void vsip_vgetattrib_i(const vsip_vview_i* v, vsip_vattr_i *a); void vsip_vgetattrib_bl(const vsip_vview_bl* v, vsip_vattr_bl *a); void vsip_vgetattrib_vi(const vsip_vview_vi* v, vsip_vattr_vi *a); void vsip_vgetattrib_mi(const vsip_vview_mi* v, vsip_vattr_mi *a); void vsip_cvgetattrib_f(const vsip_cvview_f* v, vsip_cvattr_f *a);
This function retrieves the attributes of the vector view v and stores them in the structure pointed to by a.
const vsip_dvview_p* v: Pointer to the vector view.
vsip_dvattr_p *a: Pointer to a structure where the attributes will be stored.
vsip_vview_f *vector_view; vsip_vattr_f attributes; // Assuming vector_view has been properly initialized vsip_vgetattrib_f(vector_view, &attributes); // The attributes of the vector view are now stored in 'attributes'