qt_double_max - Man Page
find the maximum value within an array in parallel
Synopsis
#include <qthread/qloop.h>
double
qt_double_max (double *array, size_t length, int checkfeb);
unsigned int
qt_uint_max (unsigned int *array, size_t length, int checkfeb);
int
qt_int_max (int *array, size_t length, int checkfeb);
Description
These functions take as input an array of length numbers and will return the maximum value within those numbers. This value is computed in parallel by dividing the possible values up among the shepherds evenly.
If checkfeb is non-zero, these functions will wait for the entries in the array to be full before comparing them. They DO NOT check whether the array entries are properly aligned.
Return Value
The maximum value of the first length entries of array.
See Also
qt_double_prod(3), qt_double_sum(3), qt_double_min(3), qt_uint_prod(3), qt_uint_sum(3), qt_uint_min(3), qt_int_prod(3), qt_int_sum(3), qt_int_min(3), qt_loop(3), qt_loop_balance(3), qt_loopaccum_balance(3)
Referenced By
qt_double_min(3), qt_double_prod(3), qt_double_sum(3).