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.

4.3.19 vsip_vramp_p - Fill a Vector View with a Ramp

void vsip_vramp_f(vsip_scalar_f z, vsip_scalar_f d, const vsip_vview_f* r);
Description

This function fills the vector view r with a ramp starting at z and incrementing by d.

ri= z+ di
Parameters
Example

vsip_vview_f *vector_view; 
vsip_scalar_f start_value = 0.0; 
vsip_scalar_f increment = 1.0; 
 
// Assuming vector_view has been properly initialized 
vsip_vramp_f(start_value, increment, vector_view);