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

8.7 vsip_svdiv_p - Divide a Scalar by a Vector View

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

This function divides the scalar alpha by each element of the vector view b and stores the result in the vector view r.

Parameters
Example

vsip_vview_f *src_vector_view; 
vsip_vview_f *dst_vector_view; 
vsip_scalar_f scalar = 2.0; 
 
// Assuming src_vector_view and dst_vector_view have been properly initialized 
vsip_svdiv_f(scalar, src_vector_view, dst_vector_view);