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

9.1 vsip_vminval_p - Find the Minimum Value in a Vector View

vsip_scalar_f vsip_vminval_f(const vsip_vview_f* a, vsip_index* j);
Description

This function finds the minimum value in the vector view a and returns it. The index of the minimum value is stored in the variable pointed to by j.

Parameters
Return Value
Example

vsip_vview_f *vector_view; 
vsip_index index; 
vsip_scalar_f min_value; 
 
// Assuming vector_view has been properly initialized 
min_value = vsip_vminval_f(vector_view, &index);