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

9.18 vsip_vfill_p - Fill a Vector View with a Scalar Value

void vsip_vfill_f(vsip_scalar_f alpha, const vsip_vview_f* r);
Description

This function fills the vector view r with the scalar value alpha.

r=α
Parameters
Example

vsip_vview_f *vector_view; 
vsip_scalar_f scalar_value = 2.0; 
 
// Assuming vector_view has been properly initialized 
vsip_vfill_f(scalar_value, vector_view);