Device pointer interface: Find the minimum and maximum of a vector |
- Parameters:
-
[out] | h_dst | Output values. *h_dst.x is minimum, *h_dst.y is maximum |
[in] | numel | The number of elements in the input array. |
[in] | d_src | The 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_dst | Output values. *d_dst.x is minimum, *d_dst.y is maximum |
[in] | ndims | The number of dimensions in the input array. |
[in] | dims | The size of each dimension in input array. |
[in] | d_src | The input array. |
[in] | dim | The 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.
|