Device pointer interface: Find the sum of the elements in the input. |
- 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_sum_vector_S (float *h_dst, unsigned numel, const float *d_src) |
| sum The value of a single precision vector
|
afError | af_sum_vector_B (float *h_dst, unsigned numel, const bool *d_src) |
| sum The value of a boolean vector
|
afError | af_sum_vector_I (int *h_dst, unsigned numel, const int *d_src) |
| sum The value of a 32-bit signed integer vector
|
afError | af_sum_vector_U (unsigned *h_dst, unsigned numel, const unsigned *d_src) |
| sum The value of a 32-bit unsigned integer vector
|
afError | af_sum_vector_C (cuComplex *h_dst, unsigned numel, const cuComplex *d_src) |
| sum The value of a single precision, complex vector
|
afError | af_sum_vector_D (double *h_dst, unsigned numel, const double *d_src) |
| sum The value of a double precision vector
|
afError | af_sum_vector_Z (cuDoubleComplex *h_dst, unsigned numel, const cuDoubleComplex *d_src) |
| sum The value of a double precision, complex vector
|
Device pointer interface: Find the sum 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_sum_S (float *d_dst, unsigned ndims, const unsigned *dims, const float *d_src, int dim) |
| sum the value along a dimension in single precision matrix
|
afError | af_sum_B (float *d_dst, unsigned ndims, const unsigned *dims, const bool *d_src, int dim) |
| sum the value along a dimension in boolean matrix
|
afError | af_sum_I (int *d_dst, unsigned ndims, const unsigned *dims, const int *d_src, int dim) |
| sum the value along a dimension in 32-bit signed integer matrix
|
afError | af_sum_U (unsigned *d_dst, unsigned ndims, const unsigned *dims, const unsigned *d_src, int dim) |
| sum the value along a dimension in 32-bit unsigned integer matrix
|
afError | af_sum_C (cuComplex *d_dst, unsigned ndims, const unsigned *dims, const cuComplex *d_src, int dim) |
| sum the value along a dimension in single precision, complex matrix
|
afError | af_sum_D (double *d_dst, unsigned ndims, const unsigned *dims, const double *d_src, int dim) |
| sum the value along a dimension in double precision matrix
|
afError | af_sum_Z (cuDoubleComplex *d_dst, unsigned ndims, const unsigned *dims, const cuDoubleComplex *d_src, int dim) |
| sum the value along a dimension in double precision, complex matrix
|