Adelsbach/VSIPL
Core Light Programming Reference Guide
DD-00014-015
Core Light

6.10 vsip_dvputlength_p - Set the Length of a Vector View

vsip_vview_f* vsip_vputlength_f(vsip_vview_f* v, vsip_length n); 
vsip_cvview_f* vsip_cvputlength_f(vsip_cvview_f* v, vsip_length n);
Description

This function sets the length of the vector view v to the specified value n.

Parameters
Return Value
Example

vsip_vview_f *vector_view; 
vsip_length new_length = 15; 
 
// Assuming vector_view has been properly initialized 
vector_view = vsip_vputlength_f(vector_view, new_length); 
 
if (vector_view == NULL) { 
    // Handle error 
}