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.2.4 vsip_dvsub_p - Element-wise Subtraction of Two Vector Views

void vsip_vsub_f(const vsip_vview_f* a, const vsip_vview_f* b, constvsip_vview_f* r); 
void vsip_cvsub_f(const vsip_cvview_f* a, const vsip_cvview_f* b, const vsip_cvview_f* r);
Description

This function performs element-wise subtraction of the vector view b from the vector view a and stores the result in the vector view r.

Parameters
Example

vsip_vview_f *vector_view_a; 
vsip_vview_f *vector_view_b; 
vsip_vview_f *result_vector_view; 
 
// Assuming vector_view_a, vector_view_b, and result_vector_view have been properly initialized 
vsip_vsub_f(vector_view_a, vector_view_b, result_vector_view);