vsip_block_f* vsip_vdestroy_f(vsip_vview_f* v); vsip_block_i* vsip_vdestroy_i(vsip_vview_i* v); vsip_cblock_f* vsip_cvdestroy_f(vsip_cvview_f* v);
This function destroys a vector view v and returns a pointer to the underlying data block. After calling this function, the vector view is no longer valid, but the data block can still be used.
vsip_dvview_p* v: Pointer to the vector view to be destroyed.
On success, a pointer to the underlying data block is returned.
On error, NULL is returned.
If an error occurs, the function returns NULL.
vsip_vview_f *vector_view; vsip_block_f *data_block; // Assuming vector_view has been properly initialized data_block = vsip_vdestroy_f(vector_view); if (data_block == NULL) { // Handle error } // The data block can still be used after the vector view is destroyed