Adelsbach/VSIPL
Core Light Double Precision Programming Reference Guide
DD-00014-015
Core Light +DP

9.8 vsip_vmax_p - Element-wise Maximum of Two Vector Views

void vsip_vmax_f(const vsip_vview_f* a, const vsip_vview_f* b, const vsip_vview_f* w); 
void vsip_vmax_d(const vsip_vview_d* a, const vsip_vview_d* b, const vsip_vview_d* w);
Description

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

wi =max(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_vmax_f(vector_view_a, vector_view_b, result_vector_view);