Do more. Code less. Free software for GPU computing.
<scroll to top>

Minimum and maximum values

Reductions

Device pointer interface: Find the minimum and maximum of a vector

Parameters:
[out]h_dstOutput values. *h_dst.x is minimum, *h_dst.y is maximum
[in]numelThe number of elements in the input array.
[in]d_srcThe input array.

afError af_minmax_vector_S (float2 *h_dst, unsigned numel, const float *d_src)
 Minimum and maximum value of a single precision vector.
afError af_minmax_vector_D (double2 *h_dst, unsigned numel, const double *d_src)
 Minimum and maximum value of a single precision vector.

Device pointer interface: Find the minimum and maximum value along a dimension.

Parameters:
[out]d_dstOutput values. *d_dst.x is minimum, *d_dst.y is maximum
[in]ndimsThe number of dimensions in the input array.
[in]dimsThe size of each dimension in input array.
[in]d_srcThe input array.
[in]dimThe dimension along which to perform the operation.

afError af_minmax_S (float2 *d_dst, unsigned ndims, const unsigned *dims, const float *d_src, int dim)
 Minimum and maximum value along a dimension in single precision matrix.
afError af_minmax_D (double2 *d_dst, unsigned ndims, const unsigned *dims, const double *d_src, int dim)
 Minimum and maximum value along a dimension in single precision matrix.

Function Documentation

afError af_minmax_vector_S ( float2 *  h_dst,
unsigned  numel,
const float *  d_src 
)

Minimum and maximum value of a single precision vector.

afError af_minmax_vector_D ( double2 *  h_dst,
unsigned  numel,
const double *  d_src 
)

Minimum and maximum value of a single precision vector.

afError af_minmax_S ( float2 *  d_dst,
unsigned  ndims,
const unsigned *  dims,
const float *  d_src,
int  dim 
)

Minimum and maximum value along a dimension in single precision matrix.

afError af_minmax_D ( double2 *  d_dst,
unsigned  ndims,
const unsigned *  dims,
const double *  d_src,
int  dim 
)

Minimum and maximum value along a dimension in single precision matrix.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines