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

9.7 vsip_vmin_p - Element-wise Minimum of Two Vector Views

void vsip_vmin_f(const vsip_vview_f* a, const vsip_vview_f* b, const vsip_vview_f* w);
Description

This function performs element-wise minimum comparison of the vector views a and b and stores the result in the vector view w. Each element in w is the minimum of the corresponding elements in a and b.

wi =min(ai,bi)
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_vmin_f(vector_view_a, vector_view_b, result_vector_view);