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

8.9 vsip_dvneg_p - Negate Elements of a Vector View

void vsip_vneg_f(const vsip_vview_f* a, const vsip_vview_f* r); 
void vsip_cvneg_f(const vsip_cvview_f* a, const vsip_cvview_f* r);
Description

This function negates each element of the vector view a and stores the result in the vector view r.

ri= -ai
Parameters
Example

vsip_vview_f *src_vector_view; 
vsip_vview_f *dst_vector_view; 
 
// Assuming src_vector_view and dst_vector_view have been properly initialized 
vsip_vneg_f(src_vector_view, dst_vector_view);