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

This manual is preliminary and incomplete.
While our Core implementation implements all functions given in the standard we are still working on completing this documentation.

Please refer to the VSIPL standard for a complete function reference of the Core profile until we have completed work on this documentation.

1.3.9 vsip_dvgetattrib_p - Get 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 */ 
 
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);
Description

This function retrieves the attributes of the vector view v and stores them in the structure pointed to by a.

Parameters
Example

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'