Device pointer interface: Verify if any of the elements are non zero. |
- Parameters:
-
[out] | h_dst | Scalar and on host. |
[in] | numel | The number of elements in the vector. |
[in] | d_src | The input vector. |
|
afError | af_anytrue_vector_S (bool *h_dst, unsigned numel, const float *d_src) |
| any along single precision vector
|
afError | af_anytrue_vector_B (bool *h_dst, unsigned numel, const bool *d_src) |
| any along boolean vector
|
afError | af_anytrue_vector_I (bool *h_dst, unsigned numel, const int *d_src) |
| any along 32-bit signed integer vector
|
afError | af_anytrue_vector_U (bool *h_dst, unsigned numel, const unsigned *d_src) |
| any along 32-bit unsigned integer vector
|
afError | af_anytrue_vector_C (bool *h_dst, unsigned numel, const cuComplex *d_src) |
| any along single precision, complex vector
|
afError | af_anytrue_vector_D (bool *h_dst, unsigned numel, const double *d_src) |
| any along double precision vector
|
afError | af_anytrue_vector_Z (bool *h_dst, unsigned numel, const cuDoubleComplex *d_src) |
| any along double precision, complex vector
|
Device pointer interface: Verify any along a dimension. |
- Parameters:
-
[out] | d_dst | A vector pointer on the device. |
[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_anytrue_S (bool *d_dst, unsigned ndims, const unsigned *dims, const float *d_src, int dim) |
| any along a dimension in single precision matrix
|
afError | af_anytrue_B (bool *d_dst, unsigned ndims, const unsigned *dims, const bool *d_src, int dim) |
| any along a dimension in boolean matrix
|
afError | af_anytrue_I (bool *d_dst, unsigned ndims, const unsigned *dims, const int *d_src, int dim) |
| any along a dimension in 32-bit signed integer matrix
|
afError | af_anytrue_U (bool *d_dst, unsigned ndims, const unsigned *dims, const unsigned *d_src, int dim) |
| any along a dimension in 32-bit unsigned integer matrix
|
afError | af_anytrue_C (bool *d_dst, unsigned ndims, const unsigned *dims, const cuComplex *d_src, int dim) |
| any along a dimension in single precision, complex matrix
|
afError | af_anytrue_D (bool *d_dst, unsigned ndims, const unsigned *dims, const double *d_src, int dim) |
| any along a dimension in double precision matrix
|
afError | af_anytrue_Z (bool *d_dst, unsigned ndims, const unsigned *dims, const cuDoubleComplex *d_src, int dim) |
| any along a dimension in double precision, complex matrix
|