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.5 vsip_dvput_p - Set an Element in a Vector View

void vsip_vput_f(const vsip_vview_f* v, vsip_index j, vsip_scalar_f x); 
void vsip_vput_bl(const vsip_vview_bl* v, vsip_index j, vsip_scalar_bl x); 
void vsip_vput_vi(const vsip_vview_vi* v, vsip_index j, vsip_scalar_vi x); 
void vsip_vput_mi(const vsip_vview_mi* v, vsip_index j, vsip_scalar_mi x); 
void vsip_cvput_f(const vsip_cvview_f* v, vsip_index j, vsip_cscalar_f x);
Description

This function sets the element at the specified index j in the vector view v to the value x.

Parameters
Example

vsip_vview_f *vector_view; 
vsip_index index = 3; 
vsip_scalar_f new_value = 10.0; 
 
// Assuming vector_view has been properly initialized 
vsip_vput_f(vector_view, index, new_value);